]> git.sur5r.net Git - bacula/bacula/blobdiff - gui/baculum/protected/API/Class/Bconsole.php
baculum: Fix error message about disabled bconsole
[bacula/bacula] / gui / baculum / protected / API / Class / Bconsole.php
index 1d02cb857ec23b29c60d7a7cde4a78fcc707c48e..4320c8baa9e068938a72c2789eec05af44024bab 100644 (file)
@@ -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