]> git.sur5r.net Git - bacula/bacula/commitdiff
baculum: Fix error message about disabled bconsole
authorMarcin Haba <marcin.haba@bacula.pl>
Sat, 2 Dec 2017 15:35:34 +0000 (16:35 +0100)
committerKern Sibbald <kern@sibbald.com>
Sat, 9 Dec 2017 14:06:57 +0000 (15:06 +0100)
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