rabin 6 年之前
父節點
當前提交
29cf9e96bc
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      common.php

+ 1 - 1
common.php

@@ -36,7 +36,7 @@ function convert($url, $ext = 'mp4', $table = false, $id = false, $col = '')
         if (Dever::is_file($file)) {
             $url = $file;
 
-            if ($table) {
+            if ($table && $file) {
                 Dever::db($table)->update(array('where_id' => $id, $col => $file));
             }
         }