forked from GNUsocial/gnu-social
summon a spam filter correctly
This commit is contained in:
parent
32008901ec
commit
bf617fd455
@ -89,7 +89,7 @@ class TrainAction extends Action
|
|||||||
|
|
||||||
$filter = null;
|
$filter = null;
|
||||||
|
|
||||||
Event::handle('GetSpamFilter', &$filter);
|
Event::handle('GetSpamFilter', array(&$filter));
|
||||||
|
|
||||||
if (empty($filter)) {
|
if (empty($filter)) {
|
||||||
throw new ServerException(_("No spam filter configured."));
|
throw new ServerException(_("No spam filter configured."));
|
||||||
|
Loading…
Reference in New Issue
Block a user