]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
baculum: Tweak fix variable initialization
authorMarcin Haba <marcin.haba@bacula.pl>
Sun, 25 Oct 2020 06:36:08 +0000 (07:36 +0100)
committerMarcin Haba <marcin.haba@bacula.pl>
Sun, 25 Oct 2020 06:36:08 +0000 (07:36 +0100)
gui/baculum/protected/API/Class/Bconsole.php

index 3eccd2fe78d0c9f36632d12c6e605d928fa9c6a8..2998b85bc14dd44d0b52b337d360174fad460706 100644 (file)
@@ -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,