]> git.mxchange.org Git - friendica-addons.git/commitdiff
[avancedcontentfilter] Fix typo in exception name
authorHypolite Petovan <hypolite@mrpetovan.com>
Sun, 24 Nov 2019 19:20:57 +0000 (14:20 -0500)
committerGitHub <noreply@github.com>
Sun, 24 Nov 2019 19:20:57 +0000 (14:20 -0500)
advancedcontentfilter/advancedcontentfilter.php

index dbbfb2e2ec67747137fb65e376b7406fb901f945..1b54df49dc57385fbcb39208000b7b9b3f8d6940 100644 (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()]);