diff --git a/phpgwapi/inc/class.db_mysql.inc.php b/phpgwapi/inc/class.db_mysql.inc.php index f607e5c31e..0c3bb7ed8b 100644 --- a/phpgwapi/inc/class.db_mysql.inc.php +++ b/phpgwapi/inc/class.db_mysql.inc.php @@ -579,6 +579,10 @@ function table_names() { + if (!$this->Link_ID) + { + return array(); + } $return = Array(); $this->query('SHOW TABLES',__LINE__,__FILE__); $i=0;