Fixed "Incorrect integer value: 'Array' for column" error in updates.

pull/142/head
Lucas Teske 8 years ago
parent d57aa46eb5
commit 50ac4c7597
No known key found for this signature in database
GPG Key ID: 6C39C1C16A9DA7BE

@ -1759,7 +1759,7 @@ function db_update_q($table, $where, $values, $timestamp = array('modified')) {
$table = table_by_key($table);
foreach ($values as $key => $value) {
$sql_values[$key] = $key . "='" . escape_string($values) . "'";
$sql_values[$key] = $key . "='" . escape_string($value) . "'";
}
foreach ($timestamp as $key) {

Loading…
Cancel
Save