[avancedcontentfilter] Fix typo in exception name

pull/914/head
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
1 changed files with 1 additions and 1 deletions

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()]);