- added check for empty file name as the export doesn't work without one:
  `[Error] Argument 1 passed to Friendica\Moderation\DomainPatternBlocklist::exportToFile() must be of the type string, null given, called in /var/www/.../src/Console/ServerBlock.php on line 110`
This commit is contained in:
Roland Häder 2023-02-21 12:56:24 +01:00
parent dec5a40aac
commit ed86e9ca96
Signed by: roland
GPG Key ID: C82EDE5DDFA0BA77
1 changed files with 5 additions and 0 deletions

View File

@ -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