From 59da4bd66a8cc437fea0b9e0cdcb76d30e8b9ea5 Mon Sep 17 00:00:00 2001 From: David Grudl Date: Mon, 12 Jan 2015 08:57:55 +0100 Subject: [PATCH] DibiDatabaseInfo: no table is returned as NULL --- dibi/libs/DibiDatabaseInfo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dibi/libs/DibiDatabaseInfo.php b/dibi/libs/DibiDatabaseInfo.php index be956634..9736adde 100644 --- a/dibi/libs/DibiDatabaseInfo.php +++ b/dibi/libs/DibiDatabaseInfo.php @@ -481,7 +481,7 @@ class DibiColumnInfo extends DibiObject */ public function getTableName() { - return isset($this->info['table']) ? $this->info['table'] : NULL; + return isset($this->info['table']) && $this->info['table'] != NULL ? $this->info['table'] : NULL; // intentionally == }