]> git.mxchange.org Git - friendica.git/commitdiff
Don't insert empty terms
authorMichael <heluecht@pirati.ca>
Thu, 16 Apr 2020 08:21:02 +0000 (08:21 +0000)
committerMichael <heluecht@pirati.ca>
Thu, 16 Apr 2020 08:21:02 +0000 (08:21 +0000)
src/Model/Term.php

index 928c35f20796cdbdd0cc94bca10c3d5f29cb8a82..13639f770083cdf1a0522da26f6341270c964f57 100644 (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']]);