From 04f7e8464236ee8943cee24ec2632dc3801ff455 Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Fri, 1 Mar 2013 17:43:08 +0000 Subject: [PATCH] Set $finfo as a blank var to begin with --- lib/file-control.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/file-control.php b/lib/file-control.php index 9cc3b6f..9bf46e1 100644 --- a/lib/file-control.php +++ b/lib/file-control.php @@ -21,6 +21,7 @@ if ($_GET['action']=="load") { echo ''; if (file_exists($file)) { + $finfo = ""; // Determine what to do based on mime type if (function_exists('finfo_open')) { $finfoMIME = finfo_open(FILEINFO_MIME_TYPE);