mirror of
https://github.com/friendica/friendica
synced 2024-11-09 16:22:56 +00:00
Fixed:
- 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:
parent
dec5a40aac
commit
ed86e9ca96
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue