Don't insert empty terms

This commit is contained in:
Michael 2020-04-16 08:21:02 +00:00
parent 5ef05b3703
commit d3f4e4d629

View File

@ -330,6 +330,10 @@ class Term
continue; continue;
} }
if (empty($term)) {
continue;
}
if ($item['uid'] == 0) { if ($item['uid'] == 0) {
$global = true; $global = true;
DBA::update('term', ['global' => true], ['otype' => self::OBJECT_TYPE_POST, 'guid' => $item['guid']]); DBA::update('term', ['global' => true], ['otype' => self::OBJECT_TYPE_POST, 'guid' => $item['guid']]);