From 50ac4c75972730eba54e925942f9f9d09176757a Mon Sep 17 00:00:00 2001 From: Lucas Teske Date: Wed, 21 Feb 2018 22:50:02 -0300 Subject: [PATCH] Fixed "Incorrect integer value: 'Array' for column" error in updates. --- functions.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.inc.php b/functions.inc.php index ad2f7bfb..f6b72f3e 100644 --- a/functions.inc.php +++ b/functions.inc.php @@ -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) {