diff --git a/src/www/foot.inc b/src/www/foot.inc index 38d1e4b65..237eb5569 100644 --- a/src/www/foot.inc +++ b/src/www/foot.inc @@ -41,7 +41,7 @@ $widgettitle = $widgetname . "_title"; $widgettitlelink = $widgetname . "_title_link"; - if ($$widgettitle != ""): + if (isset($$widgettitle)): ?> diff --git a/src/www/guiconfig.inc b/src/www/guiconfig.inc index ead1271a6..949999afb 100644 --- a/src/www/guiconfig.inc +++ b/src/www/guiconfig.inc @@ -273,6 +273,8 @@ function print_info_box_np($msg, $name="apply",$value="", $showapply=false) { if($_POST['if']) $savebutton .= ""; $savebutton.=""; + } else { + $savebutton = ''; } $nifty_redbox = "#990000"; $nifty_blackbox = "#000000"; @@ -289,10 +291,6 @@ function print_info_box_np($msg, $name="apply",$value="", $showapply=false) { eval($toeval); } - if(!$savebutton) { - $savebutton = ''; - } - echo <<