]> git.mxchange.org Git - friendica.git/commitdiff
Simplify test for empty network selection
authorMatthew Exon <github.mexon@spamgourmet.com>
Tue, 4 May 2021 11:16:00 +0000 (13:16 +0200)
committerGitHub <noreply@github.com>
Tue, 4 May 2021 11:16:00 +0000 (13:16 +0200)
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
src/Console/Contact.php

index 57f64fd9acf4581d7e5a8062403ab4a956de5ab4..55fd5024ca266e66c1804c3e58780164ecb80c54 100644 (file)
@@ -159,7 +159,7 @@ HELP;
                }
 
                $network = $this->getArgument(3);
-               if (empty($network) && $network !== '') {
+               if ($network === null) {
                        $this->out('Enter network, or leave blank: ');
                        $network = CliPrompt::prompt();
                }