mirror of
https://github.com/friendica/friendica
synced 2024-11-16 00:29:27 +01:00
Merge pull request #12829 from Quix0r/fixes/export-to-file-null
Fixed: DomainPatternBlocklist::exportToFile() must be of the type string, null given
This commit is contained in:
commit
5acbcba5c2
|
@ -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