[avancedcontentfilter] Fix typo in exception name

This commit is contained in:
Hypolite Petovan 2019-11-24 14:20:57 -05:00 committed by GitHub
parent 43503abc15
commit b308f3bc05
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -339,7 +339,7 @@ function advancedcontentfilter_post_rules(ServerRequestInterface $request)
$fields['created'] = DateTimeFormat::utcNow();
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()]);