summaryrefslogtreecommitdiffstats
path: root/usr/local/www/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local/www/index.php')
-rwxr-xr-xusr/local/www/index.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr/local/www/index.php b/usr/local/www/index.php
index ecb1b1b..4f92c2d 100755
--- a/usr/local/www/index.php
+++ b/usr/local/www/index.php
@@ -152,11 +152,10 @@ if ($_POST){
}
-if ($config['widgets'])
+if ($config['widgets'] && $pconfig['sequence'] != "")
{
$widgetlist = array();
$widgetlist = $pconfig['sequence'];
-
$colpos = array();
$savedwidgetfiles = array();
$widgetname = "";
@@ -501,6 +500,7 @@ echo $jscriptstr;
?>
<div id="col1" style="float:left;width:49%;padding-bottom:40px">
<?php
+
foreach($widgetlist as $widget) {
if(!stristr($widget, "widget.php"))
@@ -515,7 +515,7 @@ echo $jscriptstr;
$nicename = ucwords($nicename);
}
- if ($config['widgets']){
+ if ($config['widgets'] && $pconfig['sequence'] != ""){
if ($displayarray[$widgetcounter] == "show"){
$divdisplay = "block";
$display = "block";
@@ -583,7 +583,7 @@ echo $jscriptstr;
}
}
- if ($config['widgets']){
+ if ($config['widgets'] && $pconfig['sequence'] != ""){
if ($colpos[$widgetcounter] == "col2" && $printed == false)
{
$printed = true;
@@ -675,7 +675,7 @@ echo $jscriptstr;
<script type="text/javascript">
- <?php if (!$config['widgets']){ ?>
+ <?php if (!$config['widgets'] && $pconfig['sequence'] != ""){ ?>
window.onload = function(in_event)
{
hideAllWidgets();
OpenPOWER on IntegriCloud