]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixes #4619 downgraded type violations to warnings
authorCash Costello <cash.costello@gmail.com>
Sat, 23 Jun 2012 13:07:47 +0000 (09:07 -0400)
committerCash Costello <cash.costello@gmail.com>
Sat, 23 Jun 2012 13:07:47 +0000 (09:07 -0400)
engine/lib/elgglib.php

index 62cb2d5bbfa142cc13a7793ed7daed6704eb8fbd..65666954cf8618ea3bd117c31d0ba1df6f424979 100644 (file)
@@ -1060,7 +1060,6 @@ function _elgg_php_error_handler($errno, $errmsg, $filename, $linenum, $vars) {
 
        switch ($errno) {
                case E_USER_ERROR:
-               case E_RECOVERABLE_ERROR: // (e.g. type hint violation)
                        error_log("PHP ERROR: $error");
                        register_error("ERROR: $error");
 
@@ -1070,6 +1069,7 @@ function _elgg_php_error_handler($errno, $errmsg, $filename, $linenum, $vars) {
 
                case E_WARNING :
                case E_USER_WARNING :
+               case E_RECOVERABLE_ERROR: // (e.g. type hint violation)
                        error_log("PHP WARNING: $error");
                        break;