X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fpq-gateway;a=blobdiff_plain;f=lib%2Fpq%2FGateway%2FTable.php;h=ba8094ab0fba87d766b55120df7282f87ac24a46;hp=805ed79353a0926461cc86ce53030e369676f5e3;hb=e2709f3f6de6d5c5ba272d353db16b015b5258b3;hpb=4879955d1b86d606dc24401f26ebde9be7612fbf diff --git a/lib/pq/Gateway/Table.php b/lib/pq/Gateway/Table.php index 805ed79..ba8094a 100644 --- a/lib/pq/Gateway/Table.php +++ b/lib/pq/Gateway/Table.php @@ -143,7 +143,6 @@ class Table function update(array $where, array $data, $returning = "*") { $query = new QueryWriter("UPDATE ".$this->conn->quoteName($this->name)); $first = true; - $params = array(); foreach ($data as $key => $val) { $query->write($first ? "SET" : ",", $key, "=", $query->param($val)); $first and $first = false;