An array with fieldnames as keys is important for the "insert" in the "update" function

This commit is contained in:
Michael 2018-03-03 13:26:23 +00:00
parent 5bda6c7f6d
commit 194da423e0

View file

@ -1245,7 +1245,7 @@ class dba {
$placeholders = substr(str_repeat("?, ", count($value)), 0, -2);
$condition_string .= "`" . $field . "` IN (" . $placeholders . ")";
} else {
$new_values[] = $value;
$new_values[$field] = $value;
$condition_string .= "`" . $field . "` = ?";
}
}