An array with fieldnames as keys is important for the "insert" in the "update" function
This commit is contained in:
@@ -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 . "` = ?";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user