table_name returns empty if we have no db-connection instead of throwing error-messages (used in setup)

Note: daves OOP changes still needs to be merged to HEAD!!!
This commit is contained in:
Ralf Becker 2003-08-13 10:56:01 +00:00
parent 1f87ecc966
commit c30cd51f22

View File

@ -579,6 +579,10 @@
function table_names() function table_names()
{ {
if (!$this->Link_ID)
{
return array();
}
$return = Array(); $return = Array();
$this->query('SHOW TABLES',__LINE__,__FILE__); $this->query('SHOW TABLES',__LINE__,__FILE__);
$i=0; $i=0;