From a702e9312d8c7a9a5b4b58aa86f17077857e7c6c Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 23 Aug 2007 13:01:09 +0100 Subject: [PATCH] do not try to process missing article categories --- functions.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 {