From b2bdcbc35afaf6d6a2ac4c569c45f29fb36626a4 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Sat, 31 Mar 2007 12:18:40 +0000 Subject: [PATCH] insert a row if BLOB is empty --- libraries/tbl_replace_fields.inc.php | 2 +- tbl_replace.php | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/libraries/tbl_replace_fields.inc.php b/libraries/tbl_replace_fields.inc.php index 89d5efdd0..356305419 100644 --- a/libraries/tbl_replace_fields.inc.php +++ b/libraries/tbl_replace_fields.inc.php @@ -1,6 +1,6 @@ 0) { - // first inserted row -> prepare template - foreach ($me_fields as $key => $val) { - $query_fields[] = PMA_backquote($key); - } $query[] = 'INSERT INTO ' . PMA_backquote($GLOBALS['db']) . '.' . PMA_backquote($GLOBALS['table']) . ' (' . implode(', ', $query_fields) . ') VALUES (' . implode('), (', $value_sets) . ')';