]> jfr.im git - uguu.git/commitdiff
Update api.php
authorEric Johansson (neku) <redacted>
Mon, 23 Feb 2015 18:12:20 +0000 (19:12 +0100)
committerEric Johansson (neku) <redacted>
Mon, 23 Feb 2015 18:12:20 +0000 (19:12 +0100)
api.php

diff --git a/api.php b/api.php
index e05186740c6bef87c215ad26584d40ae1880fb48..ad5fc5de00def7c5dbe38332cade6a29315a0462 100644 (file)
--- a/api.php
+++ b/api.php
@@ -6,7 +6,7 @@ if(isset($_GET['d'])) {
     switch ($_GET['d']) {
         case 'upload':
         //If no file is being posted, exit
-        if(empty($_FILES['file'])){
+        if(empty($_FILES['file']['name'])){
         exit('You fucked up, nothing to do.');}
         //Set the name value to the original filename
        $name = $_FILES['file']['name'];