cvs: php4 /pear/DB common.php
| From: | Chuck Hagenbuch | Date: | Tue, 21 Aug 2001 02:44:21 +0000 |
| Subject: | cvs: php4 /pear/DB common.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-605@lists.php.net to get a copy of this message | ||
chagenbu Mon Aug 20 22:44:21 2001 EDT
Modified files:
/php4/pear/DB common.php
Log:
make sure errorcodes are actually there before using them
Index: php4/pear/DB/common.php
diff -u php4/pear/DB/common.php:1.59 php4/pear/DB/common.php:1.60
--- php4/pear/DB/common.php:1.59 Tue Aug 14 08:50:33 2001
+++ php4/pear/DB/common.php Mon Aug 20 22:44:21 2001
@@ -17,7 +17,7 @@
// | |
// +----------------------------------------------------------------------+
//
-// $Id: common.php,v 1.59 2001/08/14 12:50:33 ssb Exp $
+// $Id: common.php,v 1.60 2001/08/21 02:44:21 chagenbu Exp $
//
// Base class for DB implementations.
//
@@ -136,7 +136,7 @@
function errorCode($nativecode)
{
- if ($this->errorcode_map[$nativecode]) {
+ if (isset($this->errorcode_map[$nativecode])) {
return $this->errorcode_map[$nativecode];
}