The branch, master has been updated
       via  494ad67e78d2a97590a2435e54202ca6dc6d9ef8 (commit)
      from  651b357f8a2d756e4e3f978c9b78750bcc44d0f5 (commit)


- Log -----------------------------------------------------------------
commit 494ad67e78d2a97590a2435e54202ca6dc6d9ef8
Author: Marc Delisle <[email protected]>
Date:   Tue Feb 15 12:29:24 2011 -0500

    Undefined variables when nothing is uploaded into a BLOB column

-----------------------------------------------------------------------

Summary of changes:
 libraries/File.class.php |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libraries/File.class.php b/libraries/File.class.php
index 378b25d..4fd3342 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);


hooks/post-receive
-- 
phpMyAdmin

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Phpmyadmin-git mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/phpmyadmin-git

Reply via email to