diff options
| -rw-r--r-- | phpBB/phpbb/error_collector.php | 5 | 
1 files changed, 3 insertions, 2 deletions
diff --git a/phpBB/phpbb/error_collector.php b/phpBB/phpbb/error_collector.php index 688bc0c422..bf8efd1065 100644 --- a/phpBB/phpbb/error_collector.php +++ b/phpBB/phpbb/error_collector.php @@ -26,17 +26,18 @@ class error_collector  	 * the error_reporting() function will be used to determine which errors  	 * the collector will keep.  	 * +	 * @see PHPBB3-13306  	 * @param int|null $error_types  	 */  	function __construct($error_types = null)  	{  		$this->errors = array(); -		$this->error_types = ($error_types !== null) ? $error_types : error_reporting(); +		$this->error_types = $error_types;  	}  	function install()  	{ -		set_error_handler(array(&$this, 'error_handler'), $this->error_types); +		set_error_handler(array(&$this, 'error_handler'), ($this->error_types !== null) ? $this->error_types : error_reporting());  	}  	function uninstall()  | 
