[Phpmyadmin-git] [SCM] phpMyAdmin branch, master, updated. RELEASE_3_3_5RC1-5891-gab2e4e9

Marc Delisle lem9 at users.sourceforge.net
Thu Jul 22 20:37:50 CEST 2010


The branch, master has been updated
       via  ab2e4e925ed3a5245d3c9d89462831bd735bd3c9 (commit)
      from  362aa516ac7b4b384e9cfb5d7aa7683b6b38515d (commit)


- Log -----------------------------------------------------------------
commit ab2e4e925ed3a5245d3c9d89462831bd735bd3c9
Author: Marc Delisle <marc at infomarc.info>
Date:   Thu Jul 22 14:37:42 2010 -0400

    correct insertion of BLOB field reference

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

Summary of changes:
 tbl_replace.php |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/tbl_replace.php b/tbl_replace.php
index d3271ac..bcf64af 100644
--- a/tbl_replace.php
+++ b/tbl_replace.php
@@ -231,21 +231,21 @@ foreach ($loop_array as $rowcount => $where_clause) {
             $upload_blob_repo = isset($_REQUEST['upload_blob_repo_' . $key]) ? $_REQUEST['upload_blob_repo_' . $key] : NULL;
 
             // checks if an existing blob repository reference should be removed
-            if (isset($remove_blob_repo) && !isset($upload_blob_repo)) {
+            if (isset($remove_blob_repo) && ! isset($upload_blob_repo)) {
                 $remove_blob_reference = $_REQUEST['remove_blob_ref_' . $key];
                 if (isset($remove_blob_reference)) {
                     $val = "''";
                 }
+            }
 
-                // checks if this field requires a bs reference attached to it
-                if (isset($upload_blob_repo)) {
-                    // get the most recent BLOB reference
-                    $bs_reference = PMA_File::getRecentBLOBReference();
+            // checks if this field requires a bs reference attached to it
+            if (isset($upload_blob_repo)) {
+                // get the most recent BLOB reference
+                $bs_reference = PMA_File::getRecentBLOBReference();
 
-                    // if the most recent BLOB reference exists, set it as a field value
-                    if (!is_null($bs_reference)) {
-                        $val = "'" . PMA_sqlAddslashes($bs_reference) . "'";
-                    }
+                // if the most recent BLOB reference exists, set it as a field value
+                if (!is_null($bs_reference)) {
+                    $val = "'" . PMA_sqlAddslashes($bs_reference) . "'";
                 }
             }
         }


hooks/post-receive
-- 
phpMyAdmin




More information about the Git mailing list