summaryrefslogtreecommitdiffstats
path: root/usr/local/www/index.php
diff options
context:
space:
mode:
authorScott Dale <sdale@pfsense.org>2008-07-22 23:24:24 +0000
committerScott Dale <sdale@pfsense.org>2008-07-22 23:24:24 +0000
commit3f304727a0a1270514008c6979f35863c78e99dd (patch)
treee9f4b053990147dd24eb3d7eab12dbae624d19d7 /usr/local/www/index.php
parent7770cea84961bd4ff63fe39b6eaeebf64b1f66dd (diff)
downloadpfsense-3f304727a0a1270514008c6979f35863c78e99dd.zip
pfsense-3f304727a0a1270514008c6979f35863c78e99dd.tar.gz
define variable correctly
Diffstat (limited to 'usr/local/www/index.php')
-rwxr-xr-xusr/local/www/index.php13
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']){
OpenPOWER on IntegriCloud