From b48df6a82831dfb1f003fb80f58a80df29e0cc61 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 26 Mar 2018 20:58:34 +0000 Subject: [PATCH] Avoid the warning of an unitialized variable in .htconfig.php --- src/Core/Console/Config.php | 2 ++ src/Core/Console/DatabaseStructure.php | 2 ++ src/Core/Console/GlobalCommunityBlock.php | 2 ++ src/Core/Console/GlobalCommunitySilence.php | 2 ++ src/Core/Console/Maintenance.php | 2 ++ 5 files changed, 10 insertions(+) diff --git a/src/Core/Console/Config.php b/src/Core/Console/Config.php index 9905e473c7..306e1c275e 100644 --- a/src/Core/Console/Config.php +++ b/src/Core/Console/Config.php @@ -79,6 +79,8 @@ HELP; protected function doExecute() { + $a = get_app(); + if ($this->getOption('v')) { $this->out('Executable: ' . $this->executable); $this->out('Class: ' . __CLASS__); diff --git a/src/Core/Console/DatabaseStructure.php b/src/Core/Console/DatabaseStructure.php index 4e64dc6121..eb4c6df998 100644 --- a/src/Core/Console/DatabaseStructure.php +++ b/src/Core/Console/DatabaseStructure.php @@ -39,6 +39,8 @@ HELP; protected function doExecute() { + $a = get_app(); + if ($this->getOption('v')) { $this->out('Class: ' . __CLASS__); $this->out('Arguments: ' . var_export($this->args, true)); diff --git a/src/Core/Console/GlobalCommunityBlock.php b/src/Core/Console/GlobalCommunityBlock.php index aebb0a2d7c..26c5d13131 100644 --- a/src/Core/Console/GlobalCommunityBlock.php +++ b/src/Core/Console/GlobalCommunityBlock.php @@ -39,6 +39,8 @@ HELP; protected function doExecute() { + $a = get_app(); + if ($this->getOption('v')) { $this->out('Class: ' . __CLASS__); $this->out('Arguments: ' . var_export($this->args, true)); diff --git a/src/Core/Console/GlobalCommunitySilence.php b/src/Core/Console/GlobalCommunitySilence.php index 958c445934..72d5a4f881 100644 --- a/src/Core/Console/GlobalCommunitySilence.php +++ b/src/Core/Console/GlobalCommunitySilence.php @@ -47,6 +47,8 @@ HELP; protected function doExecute() { + $a = get_app(); + if ($this->getOption('v')) { $this->out('Class: ' . __CLASS__); $this->out('Arguments: ' . var_export($this->args, true)); diff --git a/src/Core/Console/Maintenance.php b/src/Core/Console/Maintenance.php index cf0a468ff6..6638e4bfe1 100644 --- a/src/Core/Console/Maintenance.php +++ b/src/Core/Console/Maintenance.php @@ -47,6 +47,8 @@ HELP; protected function doExecute() { + $a = get_app(); + if ($this->getOption('v')) { $this->out('Class: ' . __CLASS__); $this->out('Arguments: ' . var_export($this->args, true)); -- 2.39.5