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.2.0~157 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df2eabc00c0af3898d0aff461a81afcaa3d2986e;p=thirdparty%2Fbacula.git 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