Index: trunk/extensions/AbuseFilter/AbuseFilter.parser.php |
— | — | @@ -1587,6 +1587,7 @@ |
1588 | 1588 | } |
1589 | 1589 | |
1590 | 1590 | public static function regexErrorHandler( $errno, $errstr, $errfile, $errline, $context ) { |
| 1591 | + if ( error_reporting() == 0 ) { return true; } |
1591 | 1592 | throw new AFPUserVisibleException( 'regexfailure', $context['pos'], |
1592 | 1593 | array( $errstr, $context['regex'] ) ); |
1593 | 1594 | return true; |