]> git.wh0rd.org Git - tt-rss.git/commitdiff
do not try to process missing article categories
authorAndrew Dolgov <fox@bah.spb.su>
Thu, 23 Aug 2007 12:01:09 +0000 (13:01 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Thu, 23 Aug 2007 12:01:09 +0000 (13:01 +0100)
functions.php

index bc26bf77a770327f054e64e85bbbd2c0847772f3..3a317a79b98a1294ea04351c9d60b3b3a6b1fef5 100644 (file)
                                        $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 {