kopia lustrzana https://github.com/friendica/friendica
An array with fieldnames as keys is important for the "insert" in the "update" function
rodzic
5bda6c7f6d
commit
194da423e0
|
@ -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 . "` = ?";
|
||||
}
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue