diff options
author | Simon Rettberg | 2014-06-12 18:12:49 +0200 |
---|---|---|
committer | Simon Rettberg | 2014-06-12 18:12:49 +0200 |
commit | 3d9a84371b4c07c0b98914801be8afd7d2417505 (patch) | |
tree | d1815dbd5e6f725c1bd4f668cbddbdffb494d5bb /modules/systemstatus.inc.php | |
parent | [minilinux] Add feature to update all components at once (diff) | |
download | slx-admin-3d9a84371b4c07c0b98914801be8afd7d2417505.tar.gz slx-admin-3d9a84371b4c07c0b98914801be8afd7d2417505.tar.xz slx-admin-3d9a84371b4c07c0b98914801be8afd7d2417505.zip |
Fix automatic error messages when Taskmanager::submit fails
Diffstat (limited to 'modules/systemstatus.inc.php')
-rw-r--r-- | modules/systemstatus.inc.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/systemstatus.inc.php b/modules/systemstatus.inc.php index 67ff4415..8f3d8322 100644 --- a/modules/systemstatus.inc.php +++ b/modules/systemstatus.inc.php @@ -41,10 +41,12 @@ class Page_SystemStatus extends Page return; $action = 'ajax' . Request::any('action'); - if (method_exists($this, $action)) + if (method_exists($this, $action)) { $this->$action(); - else + Message::renderList(); + } else { echo "Action $action not known in " . get_class(); + } } protected function ajaxDiskStat() @@ -56,7 +58,6 @@ class Page_SystemStatus extends Page if (!isset($task['data']['list']) || empty($task['data']['list'])) { Taskmanager::addErrorMessage($task); - Message::renderList(); return; } $store = Property::getVmStoreUrl(); @@ -114,7 +115,6 @@ class Page_SystemStatus extends Page if (!isset($task['data']['addresses']) || empty($task['data']['addresses'])) { Taskmanager::addErrorMessage($task); - Message::renderList(); return; } |