diff --git a/bundled-libs/PEAR.php b/bundled-libs/PEAR.php index 67aaa8e1..e9fd071d 100644 --- a/bundled-libs/PEAR.php +++ b/bundled-libs/PEAR.php @@ -254,7 +254,7 @@ class PEAR * @access public * @return bool true if parameter is an error */ - function isError($data, $code = null) + static function isError($data, $code = null) { if (!is_a($data, 'PEAR_Error')) { return false; diff --git a/docs/NEWS b/docs/NEWS index fd60f0a8..c37c8928 100644 --- a/docs/NEWS +++ b/docs/NEWS @@ -3,6 +3,9 @@ Version 2.0 () ------------------------------------------------------------------------ + * Patch PEAR.php to use "static" isError declaration to prevent + PHP error messages + * Change order of IF-statements in entries.tpl to check for comment_moderate/comment_added, to properly emit the message whether a comment is being moderated.