phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] CVS: phpgwapi/inc class.db_mysql.inc.php, 1.37, 1.38


From: Ralf Becker <address@hidden>
Subject: [Phpgroupware-cvs] CVS: phpgwapi/inc class.db_mysql.inc.php, 1.37, 1.38
Date: Wed, 13 Aug 2003 06:56:03 -0400

Update of /cvsroot/phpgroupware/phpgwapi/inc
In directory subversions:/tmp/cvs-serv18791

Modified Files:
        class.db_mysql.inc.php 
Log Message:
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!!!


Index: class.db_mysql.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpgwapi/inc/class.db_mysql.inc.php,v
retrieving revision 1.37
retrieving revision 1.38
diff -C2 -r1.37 -r1.38
*** class.db_mysql.inc.php      13 Mar 2003 17:59:45 -0000      1.37
--- class.db_mysql.inc.php      13 Aug 2003 10:56:01 -0000      1.38
***************
*** 580,583 ****
--- 580,587 ----
                function table_names()
                {
+                       if (!$this->Link_ID)
+                       {
+                               return array();
+                       }
                        $return = Array();
                        $this->query('SHOW TABLES',__LINE__,__FILE__);





reply via email to

[Prev in Thread] Current Thread [Next in Thread]