summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www
diff options
context:
space:
mode:
authorStephen Beaver <sbeaver@netgate.com>2015-12-18 22:57:14 -0500
committerStephen Beaver <sbeaver@netgate.com>2015-12-18 22:57:36 -0500
commit72eaefaf1fc991d5949daadbac5ae50ed1d3ad5f (patch)
tree2f629dbe57faf7b3e7d5af3d7bf74e611e796330 /src/usr/local/www
parent73e3aa2148b9fe3f8a264732f627273699797d7e (diff)
downloadpfsense-72eaefaf1fc991d5949daadbac5ae50ed1d3ad5f.zip
pfsense-72eaefaf1fc991d5949daadbac5ae50ed1d3ad5f.tar.gz
Fixed #5659
Diffstat (limited to 'src/usr/local/www')
-rw-r--r--src/usr/local/www/index.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/usr/local/www/index.php b/src/usr/local/www/index.php
index 2813535..613ba78 100644
--- a/src/usr/local/www/index.php
+++ b/src/usr/local/www/index.php
@@ -258,6 +258,16 @@ if ($config['widgets'] && $config['widgets']['sequence'] != "") {
list($file, $col, $display) = explode(':', $line);
// be backwards compatible
+ // If the display column information is missing, we will assign a temporary
+ // column here. Next time the user saves the dashboard it will fix itself
+ if ($col == "") {
+ if ($file == "system_information") {
+ $col = "col1";
+ } else {
+ $col = "col2";
+ }
+ }
+
$offset = strpos($file, '-container');
if (false !== $offset) {
$file = substr($file, 0, $offset);
OpenPOWER on IntegriCloud