do not try to process missing article categories

This commit is contained in:
Andrew Dolgov 2007-08-23 13:01:09 +01:00
parent 03a577bff0
commit a702e9312d

View file

@ -740,8 +740,10 @@
$additional_tags = array(); $additional_tags = array();
$additional_tags_src = $item->get_categories(); $additional_tags_src = $item->get_categories();
foreach ($additional_tags_src as $tobj) { if (is_array($additional_tags_src)) {
array_push($additional_tags, $tobj->get_term()); foreach ($additional_tags_src as $tobj) {
array_push($additional_tags, $tobj->get_term());
}
} }
} else { } else {