diff options
author | Scott Dale <sdale@pfsense.org> | 2008-07-22 23:24:24 +0000 |
---|---|---|
committer | Scott Dale <sdale@pfsense.org> | 2008-07-22 23:24:24 +0000 |
commit | 3f304727a0a1270514008c6979f35863c78e99dd (patch) | |
tree | e9f4b053990147dd24eb3d7eab12dbae624d19d7 /usr/local/www/index.php | |
parent | 7770cea84961bd4ff63fe39b6eaeebf64b1f66dd (diff) | |
download | pfsense-3f304727a0a1270514008c6979f35863c78e99dd.zip pfsense-3f304727a0a1270514008c6979f35863c78e99dd.tar.gz |
define variable correctly
Diffstat (limited to 'usr/local/www/index.php')
-rwxr-xr-x | usr/local/www/index.php | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/usr/local/www/index.php b/usr/local/www/index.php index 9fa6e39..ecb1b1b 100755 --- a/usr/local/www/index.php +++ b/usr/local/www/index.php @@ -154,6 +154,7 @@ if ($_POST){ if ($config['widgets']) { + $widgetlist = array(); $widgetlist = $pconfig['sequence']; $colpos = array(); @@ -503,15 +504,15 @@ echo $jscriptstr; foreach($widgetlist as $widget) { if(!stristr($widget, "widget.php")) - continue; + continue; $periodpos = strpos($widget, "."); $widgetname = substr($widget, 0, $periodpos); if ($widgetname != ""){ - $nicename = $widgetname; - $nicename = str_replace("_", " ", $nicename); - - //make the title look nice - $nicename = ucwords($nicename); + $nicename = $widgetname; + $nicename = str_replace("_", " ", $nicename); + + //make the title look nice + $nicename = ucwords($nicename); } if ($config['widgets']){ |