From: Chuck Hagenbuch Date: Mon, 7 Jun 2010 01:17:56 +0000 (-0400) Subject: Fix passing of prepared statement parameters X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=86a5934128f32f0958801b00c57e10555a005144;p=horde.git Fix passing of prepared statement parameters --- diff --git a/framework/Group/lib/Horde/Group/Sql.php b/framework/Group/lib/Horde/Group/Sql.php index 50e8a60d2..7632dd8da 100644 --- a/framework/Group/lib/Horde/Group/Sql.php +++ b/framework/Group/lib/Horde/Group/Sql.php @@ -360,7 +360,7 @@ class Horde_Group_Sql extends Horde_Group $query = 'SELECT group_name FROM horde_groups WHERE group_uid = ?'; try { - return $this->db->selectValue($query, $gid); + return $this->db->selectValue($query, array($gid)); } catch (Horde_Db_Exception $e) { throw new Horde_Group_Exception($e); } @@ -647,7 +647,7 @@ class Horde_Group_Sql extends Horde_Group $sql = 'SELECT g.group_uid AS group_uid, g.group_name AS group_name FROM horde_groups g, horde_groups_members m ' . ' WHERE m.user_uid = ? AND g.group_uid = m.group_uid ORDER BY g.group_name'; try { - $result = $this->db->selectAll($sql, $user); + $result = $this->db->selectAll($sql, array($user)); } catch (Horde_Db_Exception $e) { throw new Horde_Group_Exception($e); }