diff --git a/app/Controllers/FileController.php b/app/Controllers/FileController.php index 20667f4..d8df7bc 100644 --- a/app/Controllers/FileController.php +++ b/app/Controllers/FileController.php @@ -57,8 +57,6 @@ class FileController extends Controller */ private function upload($mode, $file, $user) { - $error = null; - // Handle errors switch ($file['error']) { case UPLOAD_ERR_OK: diff --git a/app/ExceptionHandler.php b/app/ExceptionHandler.php index 39bdd1c..2674890 100644 --- a/app/ExceptionHandler.php +++ b/app/ExceptionHandler.php @@ -61,7 +61,7 @@ class ExceptionHandler $debug = config('dev.show_errors'); - if (true) { + if ($debug) { header('Content-Type: text/plain'); echo $ex; } else {