Browse Source

Merge pull request #4686 from annando/no-warn-app

Avoid the warning of an unitialized variable in .htconfig.php
pull/4690/head
Hypolite Petovan 4 years ago committed by GitHub
parent
commit
35e18e9e1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/Core/Console/Config.php
  2. 2
      src/Core/Console/DatabaseStructure.php
  3. 2
      src/Core/Console/GlobalCommunityBlock.php
  4. 2
      src/Core/Console/GlobalCommunitySilence.php
  5. 2
      src/Core/Console/Maintenance.php

2
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__);

2
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));

2
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));

2
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));

2
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));

Loading…
Cancel
Save