Don't insert empty terms

This commit is contained in:
Michael 2020-04-16 08:21:02 +00:00
parent 5ef05b3703
commit d3f4e4d629
1 changed files with 4 additions and 0 deletions

View File

@ -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']]);