X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FConsole%2FServerBlock.php;h=4d04dcff81e0d23847af76a05fe399728f1ea8b6;hb=e659a0314086dd700dbe5e754e383ab758725805;hp=ed9ff5dbde44cc0dc6d3a2371a1c1c282a3ea6f2;hpb=c7e944e793094654ab99e16b621ad8c7caf02a2b;p=friendica.git diff --git a/src/Console/ServerBlock.php b/src/Console/ServerBlock.php index ed9ff5dbde..4d04dcff81 100644 --- a/src/Console/ServerBlock.php +++ b/src/Console/ServerBlock.php @@ -107,6 +107,11 @@ HELP; { $filename = $this->getArgument(1); + if (empty($filename)) { + $this->out('A file name is required, e.g. ./bin/console serverblock export backup.csv'); + return 1; + } + $this->blocklist->exportToFile($filename); // Success