From 00cc6d874f404780aa0a24de1a6870de5d1b25d2 Mon Sep 17 00:00:00 2001 From: Marcin Haba Date: Sat, 2 Dec 2017 16:35:34 +0100 Subject: [PATCH] baculum: Fix error message about disabled bconsole --- gui/baculum/protected/API/Class/Bconsole.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5