rabin 6 years ago
parent
commit
29cf9e96bc
1 changed files with 1 additions and 1 deletions
  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));
             }
         }