[Bug 579] New - mysql resource error in IMP

bugs@bugs.horde.org bugs@bugs.horde.org
Wed, 17 Jan 2001 22:38:23 -0400


http://bugs.horde.org/show_bug.cgi?id=579

*** shadow/579	Wed Jan 17 22:38:23 2001
--- shadow/579.tmp.7034	Wed Jan 17 22:38:23 2001
***************
*** 0 ****
--- 1,33 ----
+ Bug#: 579
+ Product: Horde
+ Version: 2.3 Unstable
+ Platform: PHP Code
+ OS/Version: FreeBSD
+ Status: NEW   
+ Resolution: 
+ Severity: normal
+ Priority: P2
+ Component: IMP
+ Area: BUILD
+ AssignedTo: chuck@horde.org                            
+ ReportedBy: gregg@nebrix.net               
+ URL: 
+ Summary: mysql resource error in IMP
+ 
+ After log out from IMP and when trying to log back in there is an error about:
+ 
+ $result not being the proper MySQL resourse for: return mysql_num_rows($result);
+ line 140 in horde/lib/Connection/Mysql.php
+ 
+ Here is a patch that fixed it for me:
+ 
+ 
+ 140,141c140,144
+ < 
+ <         return mysql_num_rows($result);
+ ---
+ >       if ($result) {
+ >               return mysql_num_rows($result);
+ >       } else {
+ >               return 0;
+ >       }