From: Marcin Haba Date: Sun, 25 Oct 2020 06:36:08 +0000 (+0100) Subject: baculum: Tweak fix variable initialization X-Git-Tag: Release-9.6.7~43 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f74a674719f84fb143746bb13647081ec41db9d;p=thirdparty%2Fbacula.git baculum: Tweak fix variable initialization --- diff --git a/gui/baculum/protected/API/Class/Bconsole.php b/gui/baculum/protected/API/Class/Bconsole.php index 3eccd2fe7..2998b85bc 100644 --- a/gui/baculum/protected/API/Class/Bconsole.php +++ b/gui/baculum/protected/API/Class/Bconsole.php @@ -3,7 +3,7 @@ * Bacula(R) - The Network Backup Solution * Baculum - Bacula web interface * - * Copyright (C) 2013-2019 Kern Sibbald + * Copyright (C) 2013-2020 Kern Sibbald * * The main author of Baculum is Marcin Haba. * The original author of Bacula is Kern Sibbald, with contributions @@ -175,6 +175,7 @@ class Bconsole extends APIModule { } public function bconsoleCommand($director, array $command, $ptype = null) { + $result = null; if (count($this->config) > 0 && $this->config['enabled'] !== '1') { throw new BConsoleException( BconsoleError::MSG_ERROR_BCONSOLE_DISABLED,