From d1542c9c001120a7f34afffba0eee960734e1e57 Mon Sep 17 00:00:00 2001 From: Thomas Keller Date: Wed, 18 Apr 2012 22:09:53 +0200 Subject: [PATCH] Another Postgres issue (hopefully fixes issue 800). --- src/IDF/Views.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/IDF/Views.php b/src/IDF/Views.php index 4b21992..afa49f2 100644 --- a/src/IDF/Views.php +++ b/src/IDF/Views.php @@ -389,7 +389,7 @@ class IDF_Views if ($user->isAnonymous()) { - $authSql = new Pluf_SQL($db->qn('private').'=%s', $false); + $authSql = new Pluf_SQL($db->qn('private').'='.$false); $sql->SAnd($authSql); } else if (!$user->administrator) { @@ -403,7 +403,7 @@ class IDF_Views $permSql = new Pluf_SQL("model_class='IDF_Project' AND owner_class='Pluf_User' AND owner_id=%s AND negative=".$false, $user->id); $rows = Pluf::factory('Pluf_RowPermission')->getList(array('filter' => $permSql->gen())); - $authSql = new Pluf_SQL($db->qn('private').'=%s', $false); + $authSql = new Pluf_SQL($db->qn('private').'='.$false); if ($rows->count() > 0) { $ids = array(); foreach ($rows as $row) {