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

pull/4532/head
Michael 2018-03-03 13:26:23 +00:00
rodzic 5bda6c7f6d
commit 194da423e0
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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 . "` = ?";
}
}