mirror of
https://github.com/friendica/friendica
synced 2024-12-23 00:00:21 +00:00
Don't insert empty terms
This commit is contained in:
parent
5ef05b3703
commit
d3f4e4d629
1 changed files with 4 additions and 0 deletions
|
@ -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']]);
|
||||
|
|
Loading…
Reference in a new issue