From 3954527d61b97c36de28e3ba0a346ae1bb82a24c Mon Sep 17 00:00:00 2001 From: Simon Josefsson Date: Tue, 22 May 2012 10:16:18 +0200 Subject: [PATCH] Silence PHP warning. --- ykval-db.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ykval-db.php b/ykval-db.php index b133149..fb883b6 100644 --- a/ykval-db.php +++ b/ykval-db.php @@ -136,7 +136,8 @@ class Db */ public function updateBy($table, $k, $v, $values) { - + $query = ""; + foreach ($values as $key=>$value){ if (!is_null($value)) $query .= ' ' . $key . "='" . $value . "',"; else $query .= ' ' . $key . '=NULL,';