From e10ce91a63c842b0213e6726787663e68e939b88 Mon Sep 17 00:00:00 2001 From: Yoggzo Date: Sun, 8 May 2016 21:20:15 +0200 Subject: patch Missing parameter file for uploadImage --- server/core/Image.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'server/core') diff --git a/server/core/Image.php b/server/core/Image.php index ac967d5..f8cac04 100755 --- a/server/core/Image.php +++ b/server/core/Image.php @@ -388,7 +388,6 @@ class image implements Core{ */ private function uploadImage(){ $id = $this->app->getPostParam("id"); - $file = $this->app->getPostParam("file"); $file_name = $_FILES['file']['name']; $file_error = $_FILES['file']['error']; $file_tmp = $_FILES['file']['tmp_name']; @@ -406,10 +405,10 @@ class image implements Core{ return; } if( !is_uploaded_file($file_tmp) ) - { - $this->app->setOutput("Error", "File Upload Error"); + { + $this->app->setOutput("Error", "File Upload Error"); return; - } + } if(!isset($id)){ $this->app->setOutput("Error", "Incorrect id parameter"); -- cgit v1.2.3