Index: branches/5.2.x/core/kernel/db/db_connection.php =================================================================== diff -u -N -r16407 -r16424 --- branches/5.2.x/core/kernel/db/db_connection.php (.../db_connection.php) (revision 16407) +++ branches/5.2.x/core/kernel/db/db_connection.php (.../db_connection.php) (revision 16424) @@ -1,6 +1,6 @@ errorHandler)) { - $func = $this->errorHandler[1]; - $ret = $this->errorHandler[0]->$func($this->errorCode, $this->errorMessage, $sql); - } - else { - $func = $this->errorHandler; - $ret = $func($this->errorCode, $this->errorMessage, $sql); - } - - return $ret; + return call_user_func($this->errorHandler, $this->errorCode, $this->errorMessage, $sql); } /**