dever 6 years ago
parent
commit
c1a3caac01
1 changed files with 4 additions and 0 deletions
  1. 4 0
      tag/lib/Core.php

+ 4 - 0
tag/lib/Core.php

@@ -16,6 +16,10 @@ class Core
         if ($tag && $id > 0 && $source_table) {
             $tag = explode(',', $tag);
             foreach ($tag as $k => $v) {
+                if (!$v) {
+                    unset($tag[$k]);
+                    continue;
+                }
                 $info = Dever::db('tag/info')->one($v);
                 if (!$info) {
                     $insert['name'] = $v;