From: Marcin Haba Date: Sat, 2 Dec 2017 15:35:34 +0000 (+0100) Subject: baculum: Fix error message about disabled bconsole X-Git-Tag: Release-9.0.7~15 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=00cc6d874f404780aa0a24de1a6870de5d1b25d2;p=bacula%2Fbacula baculum: Fix error message about disabled bconsole --- diff --git a/gui/baculum/protected/API/Class/Bconsole.php b/gui/baculum/protected/API/Class/Bconsole.php index 1d02cb857e..4320c8baa9 100644 --- a/gui/baculum/protected/API/Class/Bconsole.php +++ b/gui/baculum/protected/API/Class/Bconsole.php @@ -142,7 +142,7 @@ class Bconsole extends APIModule { } public function bconsoleCommand($director, array $command, $user = null) { - if (count($this->config) == 0 || $this->config['enabled'] !== '1') { + if (count($this->config) > 0 && $this->config['enabled'] !== '1') { throw new BConsoleException( BconsoleError::MSG_ERROR_BCONSOLE_DISABLED, BconsoleError::ERROR_BCONSOLE_DISABLED