cvs: pear /MDB2 MDB2.php
| From: | Lukas Smith | Date: | Sun, 21 May 2006 13:04:26 +0000 |
| Subject: | cvs: pear /MDB2 MDB2.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-40265@lists.php.net to get a copy of this message | ||
lsmith Sun May 21 13:04:26 2006 UTC
Modified files:
/pear/MDB2 MDB2.php
Log:
- cosmetic fix
http://cvs.php.net/viewcvs.cgi/pear/MDB2/MDB2.php?r1=1.197&r2=1.198&diff_format=u
Index: pear/MDB2/MDB2.php
diff -u pear/MDB2/MDB2.php:1.197 pear/MDB2/MDB2.php:1.198
--- pear/MDB2/MDB2.php:1.197 Thu May 18 16:30:31 2006
+++ pear/MDB2/MDB2.php Sun May 21 13:04:25 2006
@@ -43,7 +43,7 @@
// | Author: Lukas Smith <smith@pooteeweet.org> |
// +----------------------------------------------------------------------+
//
-// $Id: MDB2.php,v 1.197 2006/05/18 16:30:31 lsmith Exp $
+// $Id: MDB2.php,v 1.198 2006/05/21 13:04:25 lsmith Exp $
//
/**
@@ -693,10 +693,13 @@
function errorMessage($value = null)
{
static $errorMessages;
+
if (is_array($value)) {
$errorMessages = $value;
return MDB2_OK;
- } elseif (!isset($errorMessages)) {
+ }
+
+ if (!isset($errorMessages)) {
$errorMessages = array(
MDB2_OK => 'no error',
MDB2_ERROR => 'unknown error',