const HASHTAG = 1;
const MENTION = 2;
const CATEGORY = 3;
- const PCATEGORY = 4;
const FILE = 5;
- const SAVEDSEARCH = 6;
- const CONVERSATION = 7;
/**
* An implicit mention is a mention in a comment body that is redundant with the threading information.
*/
continue;
}
+ if (empty($term)) {
+ continue;
+ }
+
if ($item['uid'] == 0) {
$global = true;
DBA::update('term', ['global' => true], ['otype' => self::OBJECT_TYPE_POST, 'guid' => $item['guid']]);