diff options
Diffstat (limited to 'adodb-error.inc.php')
| -rw-r--r-- | adodb-error.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/adodb-error.inc.php b/adodb-error.inc.php index 46ae03e2..020f65d0 100644 --- a/adodb-error.inc.php +++ b/adodb-error.inc.php @@ -115,7 +115,7 @@ function adodb_error_pg($errormsg) 'could not serialize access due to' => DB_ERROR_SERIALIZATION_FAILURE ); reset($error_regexps); - while (list($regexp,$code) = each($error_regexps)) { + foreach ($error_regexps as $regexp => $code) { if (preg_match("/$regexp/mi", $errormsg)) { return $code; } |
