diff --git a/src/Model/Term.php b/src/Model/Term.php index 928c35f20..13639f770 100644 --- a/src/Model/Term.php +++ b/src/Model/Term.php @@ -330,6 +330,10 @@ class Term continue; } + if (empty($term)) { + continue; + } + if ($item['uid'] == 0) { $global = true; DBA::update('term', ['global' => true], ['otype' => self::OBJECT_TYPE_POST, 'guid' => $item['guid']]);