* Patch PEAR.php to use "static" isError declaration to prevent

PHP error messages
This commit is contained in:
Garvin Hicking 2015-01-05 12:44:58 +01:00
parent adfb237b4a
commit 7f6194e195
2 changed files with 4 additions and 1 deletions

View File

@ -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;

View File

@ -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.