Fixed boolean for PostgreSQL.

This commit is contained in:
Loic d'Anterroches 2008-08-01 22:03:56 +02:00
parent 7d80632557
commit a831c749d8

View File

@ -240,7 +240,7 @@ class IDF_Project extends Pluf_Model
$owners[] = Pluf::factory('Pluf_User', $row->owner_id)->login; $owners[] = Pluf::factory('Pluf_User', $row->owner_id)->login;
} }
} }
$sql = new Pluf_SQL('model_class=%s AND model_id=%s AND owner_class=%s AND permission=%s AND negative=0', $sql = new Pluf_SQL('model_class=%s AND model_id=%s AND owner_class=%s AND permission=%s AND negative='.$false,
array('IDF_Project', $this->id, 'Pluf_User', $mperm->id)); array('IDF_Project', $this->id, 'Pluf_User', $mperm->id));
$members = array(); $members = array();
foreach ($grow->getList(array('filter' => $sql->gen())) as $row) { foreach ($grow->getList(array('filter' => $sql->gen())) as $row) {