From 85ad19ec7893e5b07e5629fcc714651cecda30e3 Mon Sep 17 00:00:00 2001 From: David Monllao Date: Thu, 21 Nov 2013 14:34:56 +0800 Subject: [PATCH] MDL-42733 behat: Removing the restriction of an started output to handle the PHP errors --- lib/behat/lib.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/behat/lib.php b/lib/behat/lib.php index 73745500bee..0d9f2e2a065 100644 --- a/lib/behat/lib.php +++ b/lib/behat/lib.php @@ -84,12 +84,6 @@ function behat_error($errorcode, $text = '') { * @return bool */ function behat_error_handler($errno, $errstr, $errfile, $errline, $errcontext) { - global $OUTPUT; - - // Only after something has been writen. - if (!$OUTPUT->has_started()) { - return false; - } // If is preceded by an @ we don't show it. if (!error_reporting()) { -- 2.43.0