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.30.2.3.2.


From: Ralf Becker <address@hidden>
Subject: [Phpgroupware-cvs] CVS: phpgwapi/inc class.db_mysql.inc.php, 1.30.2.3.2.2, 1.30.2.3.2.3
Date: Wed, 13 Aug 2003 08:48:38 -0400

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

Modified Files:
      Tag: Version-0_9_16-branch
        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)


Index: class.db_mysql.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpgwapi/inc/class.db_mysql.inc.php,v
retrieving revision 1.30.2.3.2.2
retrieving revision 1.30.2.3.2.3
diff -C2 -r1.30.2.3.2.2 -r1.30.2.3.2.3
*** class.db_mysql.inc.php      13 Aug 2003 10:52:00 -0000      1.30.2.3.2.2
--- class.db_mysql.inc.php      13 Aug 2003 12:48:35 -0000      1.30.2.3.2.3
***************
*** 452,455 ****
--- 452,459 ----
                        if (!$this->Link_ID)
                        {
+                               $this->connect();
+                       }
+                       if (!$this->Link_ID)
+                       {
                                return array();
                        }
***************
*** 457,461 ****
                        $this->query("SHOW TABLES");
                        $i=0;
!                       while ($info=mysql_fetch_row($this->Query_ID))
                        {
                                $return[$i]['table_name'] = $info[0];
--- 461,465 ----
                        $this->query("SHOW TABLES");
                        $i=0;
!                       while (address@hidden($this->Query_ID))
                        {
                                $return[$i]['table_name'] = $info[0];





reply via email to

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