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
1 changed files with 4 additions and 2 deletions

View File

@ -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 {