Set $finfo as a blank var to begin with

This commit is contained in:
Matt Pass
2013-03-01 17:43:08 +00:00
parent efda17ecfa
commit 04f7e84642

View File

@@ -21,6 +21,7 @@ if ($_GET['action']=="load") {
echo '<script>action="load";</script>';
if (file_exists($file)) {
$finfo = "";
// Determine what to do based on mime type
if (function_exists('finfo_open')) {
$finfoMIME = finfo_open(FILEINFO_MIME_TYPE);