1
1
Fork 0
- 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

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