Browse Source

Merge pull request #16 from cdauth/pr16

Fix PHP warning about is_uploaded_file()
Tobias Reich 10 years ago
parent
commit
02b21f8a90
1 changed files with 1 additions and 1 deletions
  1. 1 1
      php/functions.php

+ 1 - 1
php/functions.php

@@ -117,7 +117,7 @@ function upload($files, $albumID) {
 	    $data = $data[0];
 
 	    // Import if not uploaded via web
-	    if (!is_uploaded_file($file)) {
+	    if (!is_uploaded_file($tmp_name)) {
 	    	if (copy($tmp_name, "../uploads/big/" . md5($id) . ".$data")) {
 				unlink($tmp_name);
 				$import_name = $tmp_name;