]> jfr.im git - uguu.git/commitdiff
Update api.php
authorEric Johansson (neku) <redacted>
Mon, 5 Oct 2015 22:57:03 +0000 (00:57 +0200)
committerEric Johansson (neku) <redacted>
Mon, 5 Oct 2015 22:57:03 +0000 (00:57 +0200)
api.php

diff --git a/api.php b/api.php
index 89151bad6a5c406354c059705c1b282768592919..17111aad972c65fc523e572be84bad802e08fe4b 100644 (file)
--- a/api.php
+++ b/api.php
@@ -7,7 +7,7 @@ if(isset($_GET['d'])) {
         case 'upload':
         //If no file is being posted, show the error page and exit.
         if(empty($_FILES['file']['name'])){
-               include('error.php');
+               include_once('error.php');
                exit(0);
         }
         //Set the name value to the original filename