An array with fieldnames as keys is important for the "insert" in the "update" function
This commit is contained in:
parent
5bda6c7f6d
commit
194da423e0
|
@ -1245,7 +1245,7 @@ class dba {
|
||||||
$placeholders = substr(str_repeat("?, ", count($value)), 0, -2);
|
$placeholders = substr(str_repeat("?, ", count($value)), 0, -2);
|
||||||
$condition_string .= "`" . $field . "` IN (" . $placeholders . ")";
|
$condition_string .= "`" . $field . "` IN (" . $placeholders . ")";
|
||||||
} else {
|
} else {
|
||||||
$new_values[] = $value;
|
$new_values[$field] = $value;
|
||||||
$condition_string .= "`" . $field . "` = ?";
|
$condition_string .= "`" . $field . "` = ?";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user