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.35,1.36


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

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

Modified Files:
        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.35
retrieving revision 1.36
diff -C2 -r1.35 -r1.36
*** class.db_mysql.inc.php      28 Sep 2002 20:01:44 -0000      1.35
--- class.db_mysql.inc.php      5 Mar 2003 13:57:29 -0000       1.36
***************
*** 540,547 ****
                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')
                        {
--- 540,548 ----
                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]