Fix for PostgreSQL.

This commit is contained in:
Loic d'Anterroches 2008-08-01 22:13:25 +02:00
parent a831c749d8
commit 593afd9b8b

View File

@ -86,7 +86,7 @@ class IDF_Conf extends Pluf_Model
function initCache()
{
$this->datacache = new ArrayObject();
$sql = new Pluf_SQL('project=%s', $this->_project);
$sql = new Pluf_SQL('project=%s', $this->_project->id);
foreach ($this->getList(array('filter' => $sql->gen())) as $val) {
$this->datacache[$val->vkey] = $val->vdesc;
}