From 3aa359d574e9d58ec77f8576c2d184a3b2f1e8f9 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Wed, 23 May 2007 17:11:16 +0000 Subject: [PATCH] bug #1699532 last part of the fix (for ENU) --- libraries/tbl_replace_fields.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/tbl_replace_fields.inc.php b/libraries/tbl_replace_fields.inc.php index 7f7115b33..452ff02db 100644 --- a/libraries/tbl_replace_fields.inc.php +++ b/libraries/tbl_replace_fields.inc.php @@ -78,8 +78,8 @@ if (false !== $possibly_uploaded_val) { // if we have a set, then construct the value case 'foreign': // if we have a foreign key, then construct the value - if (! empty($_REQUEST[$f]['multi_edit'][$primary_key])) { - $val = implode(',', $_REQUEST[$f]['multi_edit'][$primary_key]); + if (! empty($_REQUEST[$f]['multi_edit'][$rowcount])) { + $val = implode(',', $_REQUEST[$f]['multi_edit'][$rowcount]); $val = "'" . PMA_sqlAddslashes($val) . "'"; } break;