1
1
Fork 0

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;
}
if (empty($term)) {
continue;
}
if ($item['uid'] == 0) {
$global = true;
DBA::update('term', ['global' => true], ['otype' => self::OBJECT_TYPE_POST, 'guid' => $item['guid']]);