do not try to process missing article categories
This commit is contained in:
parent
03a577bff0
commit
a702e9312d
1 changed files with 4 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue