Don't insert empty terms
This commit is contained in:
parent
5ef05b3703
commit
d3f4e4d629
|
@ -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']]);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user