From 7c15bdadcea7f93b793d07797d77947556cc0b11 Mon Sep 17 00:00:00 2001 From: Momchil Bozhinov Date: Fri, 5 Aug 2022 22:40:14 +0300 Subject: [PATCH] fixed oops --- public/pages/bases/a.json.php | 4 ++-- public/pages/imported/a.json.php | 4 ++-- public/pages/k8s/a.json.php | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/public/pages/bases/a.json.php b/public/pages/bases/a.json.php index 1dbf55b5..a30dd076 100644 --- a/public/pages/bases/a.json.php +++ b/public/pages/bases/a.json.php @@ -60,8 +60,8 @@ foreach($nodes as $node){ $tasks = (empty($ids)) ? '' : $tasks = $this->getRunningTasks($ids); -if($hres! == false){ - $html_tpl = str_replace(["\n","\r","\t"]), '', $hres[1]); +if($hres !== false){ + $html_tpl = str_replace(["\n","\r","\t"], '', $hres[1]); $vars = [ 'nth-num' => 'nth0', 'status' => '', diff --git a/public/pages/imported/a.json.php b/public/pages/imported/a.json.php index 99c01ade..cee93578 100644 --- a/public/pages/imported/a.json.php +++ b/public/pages/imported/a.json.php @@ -31,8 +31,8 @@ if($hres !== false){ $html_tpl_1 = replaceVars($hres[1], [ 'deltitle' => ' title="'.$this->translate('Delete').'"', 'dnldtitle' => ' title="'.$this->translate('Download').'"', - 'imptitle' => ' title="'.$this->translate('Create').'"') - ]; + 'imptitle' => ' title="'.$this->translate('Create').'"' + ]); } foreach($images as $item){ diff --git a/public/pages/k8s/a.json.php b/public/pages/k8s/a.json.php index 3389c9ce..8ab29f06 100644 --- a/public/pages/k8s/a.json.php +++ b/public/pages/k8s/a.json.php @@ -50,6 +50,7 @@ if(!empty($res) && isset($res['clusters'])){ // if($node!='local') $html_tpl=str_replace('','',$html_tpl); $html .= $html_tpl; $nth++; + } } $html_tpl_1 = str_replace(["\n","\r","\t"], '', $hres[1]);