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.1,1.


From: Ralf Becker <address@hidden>
Subject: [Phpgroupware-cvs] CVS: phpgwapi/inc class.db_mysql.inc.php,1.30.2.1,1.30.2.2
Date: Wed, 05 Mar 2003 08:54:08 -0500

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

Modified Files:
      Tag: Version-0_9_14-branch
        class.db_mysql.inc.php 
Log Message:
fix to include the mysql-error-msg again


Index: class.db_mysql.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpgwapi/inc/class.db_mysql.inc.php,v
retrieving revision 1.30.2.1
retrieving revision 1.30.2.2
diff -C2 -r1.30.2.1 -r1.30.2.2
*** class.db_mysql.inc.php      7 Apr 2002 20:01:29 -0000       1.30.2.1
--- class.db_mysql.inc.php      5 Mar 2003 13:54:05 -0000       1.30.2.2
***************
*** 541,548 ****
                function halt($msg, $line = '', $file = '')
                {
                        $this->unlock();        /* Just in case there is a 
table currently locked */
  
-                       $this->Error = @mysql_error($this->Link_ID);
-                       $this->Errno = @mysql_errno($this->Link_ID);
                        if ($this->Halt_On_Error == "no")
                        {
--- 541,549 ----
                function halt($msg, $line = '', $file = '')
                {
+                       $this->Error = @mysql_error($this->Link_ID);    // need 
to be BEFORE unlock,
+                       $this->Errno = @mysql_errno($this->Link_ID);    // else 
we get its error or none
+                       
                        $this->unlock();        /* Just in case there is a 
table currently locked */
  
                        if ($this->Halt_On_Error == "no")
                        {





reply via email to

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