summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Dale <sdale@pfsense.org>2008-03-27 22:36:10 +0000
committerScott Dale <sdale@pfsense.org>2008-03-27 22:36:10 +0000
commit26192a09a7efc329246589e37a67e8dd38bb702b (patch)
treee0997345fbd0b578cf6d74bf4be1c208b1527eb3 /usr
parented682cc0ac62c961403ae9bbc0469ab690b8459b (diff)
downloadpfsense-26192a09a7efc329246589e37a67e8dd38bb702b.zip
pfsense-26192a09a7efc329246589e37a67e8dd38bb702b.tar.gz
show default widget correctly when no configuration exists
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/index.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/usr/local/www/index.php b/usr/local/www/index.php
index 9dff35c..bfb56c8 100755
--- a/usr/local/www/index.php
+++ b/usr/local/www/index.php
@@ -632,7 +632,7 @@ echo $jscriptstr;
</div>
<div style="clear:both;"></div>
</div>
- <?php if ($displayarray[$widgetcounter] != "show") { ?>
+ <?php if ($displayarray[$widgetcounter] != "show" && $firstprint != true) { ?>
<div id="<?php echo $widgetname;?>-loader" style="display:<?php echo $display; ?>;"><br>
<div id="<?php echo $widgetname;?>-loader" style="display:<?php echo $display; ?>;">
<center>
@@ -643,13 +643,10 @@ echo $jscriptstr;
if ($displayarray[$widgetcounter] != "show") $display = none; ?>
<div id="<?php echo $widgetname;?>" style="display:<?php echo $display; ?>;">
<?php
- if ($displayarray[$widgetcounter] != "close")
+ if ($displayarray[$widgetcounter] != "close" || $firstprint != true)
{
include($directory . $widget);
}
- else
- { ?>
- <?php }
?>
</div>
<div style="clear:both;"></div>
OpenPOWER on IntegriCloud