diff --git a/etc/inc/authgui.inc b/etc/inc/authgui.inc index b78a6caafd..27e4c88b5c 100644 --- a/etc/inc/authgui.inc +++ b/etc/inc/authgui.inc @@ -165,7 +165,7 @@ function display_login_form() { /* Check against locally configured IP addresses, which will catch when someone port forwards WebGUI access from WAN to an internal IP on the router. */ -global $FilterIflist; +global $FilterIflist, $nifty_background; $local_ip = false; if(strstr($_SERVER['HTTP_HOST'], ":")) { $http_host_port = explode(":", $_SERVER['HTTP_HOST']); diff --git a/usr/local/www/guiconfig.inc b/usr/local/www/guiconfig.inc index 8680c97753..11253121d9 100755 --- a/usr/local/www/guiconfig.inc +++ b/usr/local/www/guiconfig.inc @@ -281,7 +281,7 @@ function print_info_box_np($msg, $name="apply",$value="Apply changes") { global $g, $nifty_redbox, $nifty_blackbox, $nifty_background; // Set the Nifty background color if one is not set already (defaults to white) - if(!$nifty_background) + if($nifty_background == "") $nifty_background = "#FFF"; if(stristr($msg, "apply") != false || stristr($msg, "save") != false || stristr($msg, "create") != false) { @@ -335,8 +335,8 @@ function print_info_box_np($msg, $name="apply",$value="Apply changes") { EOFnp;