bug #1259951, invalid argument for foreach()
This commit is contained in:
@@ -5,6 +5,9 @@ phpMyAdmin - Changelog
|
||||
$Id$
|
||||
$Source$
|
||||
|
||||
2005-08-15 Marc Delisle <lem9@users.sourceforge.net>
|
||||
* libraries/common.lib.php: bug #1259951, invalid argument for foreach()
|
||||
|
||||
2005-08-14 Marc Delisle <lem9@users.sourceforge.net>
|
||||
* tbl_change.php: $goto was not encoded in the form, resulting in a
|
||||
problem after editing/saving a row (seen in IE6)
|
||||
|
@@ -732,8 +732,10 @@ if ($is_minimum_common == FALSE) {
|
||||
$duplicate_sql_query = '';
|
||||
if (isset($mysql_error_values[0])) {
|
||||
$tmp_fields = PMA_DBI_get_fields($db, $table, NULL);
|
||||
foreach ($tmp_fields as $tmp_field) {
|
||||
$duplicate_sql_query .= (($duplicate_sql_query!='') ? ' OR ' : '') . PMA_backquote($tmp_field['Field']) . " LIKE '" . $mysql_error_values[0] . "'";
|
||||
if ($tmp_fields) {
|
||||
foreach ($tmp_fields as $tmp_field) {
|
||||
$duplicate_sql_query .= (($duplicate_sql_query!='') ? ' OR ' : '') . PMA_backquote($tmp_field['Field']) . " LIKE '" . $mysql_error_values[0] . "'";
|
||||
}
|
||||
}
|
||||
}
|
||||
if ($duplicate_sql_query!='') {
|
||||
|
Reference in New Issue
Block a user