From 494ad67e78d2a97590a2435e54202ca6dc6d9ef8 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Tue, 15 Feb 2011 12:29:24 -0500 Subject: [PATCH] Undefined variables when nothing is uploaded into a BLOB column --- libraries/File.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/File.class.php b/libraries/File.class.php index 378b25d84..4fd334225 100644 --- a/libraries/File.class.php +++ b/libraries/File.class.php @@ -265,7 +265,7 @@ class PMA_File */ function setUploadedFromTblChangeRequest($key, $rownumber) { - if (! isset($_FILES['fields_upload']) && ! isset($_FILES['fields_upload']['name']['multi_edit'][$rownumber][$key])) { + if (! isset($_FILES['fields_upload']) || empty($_FILES['fields_upload']['name']['multi_edit'][$rownumber][$key])) { return false; } $file = PMA_File::fetchUploadedFromTblChangeRequestMultiple($_FILES['fields_upload'], $rownumber, $key);