From e035c13437c567b5bae9f7bca44938b16cad2e52 Mon Sep 17 00:00:00 2001 From: David Grudl Date: Sat, 23 Jan 2010 08:00:52 +0100 Subject: [PATCH] DibiPostgreDriver: getTables() returns always array --- dibi/drivers/postgre.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); }