]> git.mxchange.org Git - friendica.git/blobdiff - mod/noscrape.php
Catch HTTPExceptions in App::runFrontend()
[friendica.git] / mod / noscrape.php
index 87367d5369e8f3c9c6e52ba72a7e558f4e40166b..e1d51e5a801eae0f8a5bcee7c27d0cc9d43e2c1e 100644 (file)
@@ -48,7 +48,7 @@ function noscrape_init(App $a)
                exit;
        }
 
-       $keywords = ((x($a->profile, 'pub_keywords')) ? $a->profile['pub_keywords'] : '');
+       $keywords = defaults($a->profile, 'pub_keywords', '');
        $keywords = str_replace(['#',',',' ',',,'], ['',' ',',',','], $keywords);
        $keywords = explode(',', $keywords);