diff --git a/Model/DashboardRow/MySQLSettings.php b/Model/DashboardRow/MySQLSettings.php index ef353d0..9276316 100644 --- a/Model/DashboardRow/MySQLSettings.php +++ b/Model/DashboardRow/MySQLSettings.php @@ -77,13 +77,14 @@ public function load() $info = ''; foreach ($this->defaultValues as $key => $value) { $currentValue = $connection->fetchRow('SHOW VARIABLES LIKE \'' . $key . '\''); - if (is_array($currentValue) == false) continue; - if ($currentValue['Value'] <= $value) { - $this->problems .= $key . ' lower than - or equal to the default value: ' - . $currentValue['Value']; - $this->actions .= 'Ask your hosting to tune ' . $key; + if (is_array($currentValue) && isset($currentValue['Value'])) { + if ($currentValue['Value'] <= $value) { + $this->problems .= $key . ' lower than - or equal to the default value: ' + . $currentValue['Value']; + $this->actions .= 'Ask your hosting to tune ' . $key; + } + $info .= $key . ' = ' . $currentValue['Value'] . "\n"; } - $info .= $key . ' = ' . $currentValue['Value'] . "\n"; } if ($this->problems == '') {