diff options
author | Simon Rettberg | 2021-04-23 14:16:18 +0200 |
---|---|---|
committer | Simon Rettberg | 2021-04-23 14:16:18 +0200 |
commit | 9fefee6ca749e2774ce9a1df938594ede18b7fe4 (patch) | |
tree | 94644776b6190e9381fe9439f502558ae7ab066b /modules-available | |
parent | [minilinux] Prevent overflow (diff) | |
download | slx-admin-9fefee6ca749e2774ce9a1df938594ede18b7fe4.tar.gz slx-admin-9fefee6ca749e2774ce9a1df938594ede18b7fe4.tar.xz slx-admin-9fefee6ca749e2774ce9a1df938594ede18b7fe4.zip |
[vmstore] Fix display of mount task status
Diffstat (limited to 'modules-available')
-rw-r--r-- | modules-available/vmstore/page.inc.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modules-available/vmstore/page.inc.php b/modules-available/vmstore/page.inc.php index 1e0cc619..b592cb54 100644 --- a/modules-available/vmstore/page.inc.php +++ b/modules-available/vmstore/page.inc.php @@ -2,6 +2,9 @@ class Page_VmStore extends Page { + /** + * @var string|false + */ private $mountTask = false; protected function doPreprocess() @@ -20,7 +23,7 @@ class Page_VmStore extends Page protected function doRender() { $action = Request::post('action'); - if ($action === 'setstore' && !Taskmanager::isFailed($this->mountTask)) { + if ($action === 'setstore' && !Taskmanager::isFailed(Taskmanager::status($this->mountTask))) { Render::addTemplate('mount', array( 'task' => $this->mountTask['id'] )); |