1
0
mirror of https://github.com/Yubico/yubikey-val.git synced 2025-01-19 16:52:15 +01:00

Silence PHP warning.

This commit is contained in:
Simon Josefsson 2012-05-22 10:16:18 +02:00
parent f2b05822ef
commit 3954527d61

View File

@ -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,';