]> git.mxchange.org Git - friendica.git/commitdiff
Avoid the warning of an unitialized variable in .htconfig.php
authorMichael <heluecht@pirati.ca>
Mon, 26 Mar 2018 20:58:34 +0000 (20:58 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 26 Mar 2018 20:58:34 +0000 (20:58 +0000)
src/Core/Console/Config.php
src/Core/Console/DatabaseStructure.php
src/Core/Console/GlobalCommunityBlock.php
src/Core/Console/GlobalCommunitySilence.php
src/Core/Console/Maintenance.php

index 9905e473c7e6ba72e5cb9e747b548aea379ffaa6..306e1c275eb18af5ab0b667b9da77aabd4a27c22 100644 (file)
@@ -79,6 +79,8 @@ HELP;
 
        protected function doExecute()
        {
+               $a = get_app();
+
                if ($this->getOption('v')) {
                        $this->out('Executable: ' . $this->executable);
                        $this->out('Class: ' . __CLASS__);
index 4e64dc612169f2dcca0587308c152239fa8bc52b..eb4c6df99837dcf4bac1ded841b8b82ba179007f 100644 (file)
@@ -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));
index aebb0a2d7c3fb2a21868ad17f12b42947bbf9c58..26c5d13131467bb1d98cb7b9d8956e4360d2aff0 100644 (file)
@@ -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));
index 958c445934d0c577a6235a83839f490f2b57496e..72d5a4f88102d70fa003b9b72162fcf03b23bcb5 100644 (file)
@@ -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));
index cf0a468ff6fcf1b196ef80527cf664d2f8e369d7..6638e4bfe168c477a2f5349d3506af7825091b6c 100644 (file)
@@ -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));