From: Hypolite Petovan Date: Sun, 5 Aug 2018 12:26:24 +0000 (+0200) Subject: [advancedcontentfilter] Fix notice messages X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d014fa3e28472fc6f0f7375904f182ec124fbd98;p=friendica-addons.git [advancedcontentfilter] Fix notice messages --- diff --git a/advancedcontentfilter/advancedcontentfilter.php b/advancedcontentfilter/advancedcontentfilter.php index 34d47425..3012b312 100644 --- a/advancedcontentfilter/advancedcontentfilter.php +++ b/advancedcontentfilter/advancedcontentfilter.php @@ -170,7 +170,7 @@ function advancedcontentfilter_module() {} function advancedcontentfilter_init(App $a) { - if ($a->argv[1] == 'api') { + if ($a->argc > 1 && $a->argv[1] == 'api') { $slim = new \Slim\App(); require __DIR__ . '/src/middlewares.php'; @@ -188,7 +188,7 @@ function advancedcontentfilter_content(App $a) return Login::form('/' . implode('/', $a->argv)); } - if ($a->argc > 0 && $a->argv[1] == 'help') { + if ($a->argc > 1 && $a->argv[1] == 'help') { $lang = $a->user['language']; $default_dir = 'addon/advancedcontentfilter/doc/';