From: Michael Date: Thu, 16 Apr 2020 08:21:02 +0000 (+0000) Subject: Don't insert empty terms X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d3f4e4d6298e7f7d483c0452787bc6f9abae50a5;p=friendica.git Don't insert empty terms --- diff --git a/src/Model/Term.php b/src/Model/Term.php index 928c35f207..13639f7700 100644 --- a/src/Model/Term.php +++ b/src/Model/Term.php @@ -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']]);