diff --git a/dibi/drivers/postgre.php b/dibi/drivers/postgre.php index e7040829..ff310db8 100644 --- a/dibi/drivers/postgre.php +++ b/dibi/drivers/postgre.php @@ -426,7 +426,7 @@ class DibiPostgreDriver extends DibiObject implements IDibiDriver "); $res = pg_fetch_all($this->resultSet); $this->free(); - return $res; + return $res ? $res : array(); }