From a2f7e176c67bfae79ac3e95faa4acb86b8d68929 Mon Sep 17 00:00:00 2001 From: Candid Dauth Date: Sat, 5 Oct 2013 10:48:22 +0200 Subject: [PATCH] Fix PHP warning about is_uploaded_file() --- php/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php/functions.php b/php/functions.php index 9afb435..76ceee9 100644 --- a/php/functions.php +++ b/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;