From: Andrew Dolgov Date: Thu, 23 Aug 2007 12:01:09 +0000 (+0100) Subject: do not try to process missing article categories X-Git-Tag: 1.2.15~90 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=a702e9312d8c7a9a5b4b58aa86f17077857e7c6c;p=tt-rss.git do not try to process missing article categories --- diff --git a/functions.php b/functions.php index bc26bf77..3a317a79 100644 --- a/functions.php +++ b/functions.php @@ -740,8 +740,10 @@ $additional_tags = array(); $additional_tags_src = $item->get_categories(); - foreach ($additional_tags_src as $tobj) { - array_push($additional_tags, $tobj->get_term()); + if (is_array($additional_tags_src)) { + foreach ($additional_tags_src as $tobj) { + array_push($additional_tags, $tobj->get_term()); + } } } else {