fixed oops

This commit is contained in:
Momchil Bozhinov
2022-08-05 22:40:14 +03:00
parent 98ba0f4e3c
commit 7c15bdadce
3 changed files with 5 additions and 4 deletions

View File

@@ -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' => '',

View File

@@ -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){

View File

@@ -50,6 +50,7 @@ if(!empty($res) && isset($res['clusters'])){
// if($node!='local') $html_tpl=str_replace('<span class="icon-cog"></span>','',$html_tpl);
$html .= $html_tpl;
$nth++;
}
}
$html_tpl_1 = str_replace(["\n","\r","\t"], '', $hres[1]);