[avancedcontentfilter] Fix typo in exception name
This commit is contained in:
parent
43503abc15
commit
b308f3bc05
|
@ -339,7 +339,7 @@ function advancedcontentfilter_post_rules(ServerRequestInterface $request)
|
||||||
$fields['created'] = DateTimeFormat::utcNow();
|
$fields['created'] = DateTimeFormat::utcNow();
|
||||||
|
|
||||||
if (!DBA::insert('advancedcontentfilter_rules', $fields)) {
|
if (!DBA::insert('advancedcontentfilter_rules', $fields)) {
|
||||||
throw new HTTPException\ServiceUnavaiableException(DBA::errorMessage());
|
throw new HTTPException\ServiceUnavailableException(DBA::errorMessage());
|
||||||
}
|
}
|
||||||
|
|
||||||
$rule = DBA::selectFirst('advancedcontentfilter_rules', [], ['id' => DBA::lastInsertId()]);
|
$rule = DBA::selectFirst('advancedcontentfilter_rules', [], ['id' => DBA::lastInsertId()]);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user