From 834a93f76c9b2efe9a4fa89200fe24f844df7479 Mon Sep 17 00:00:00 2001 From: omniError Date: Tue, 11 Nov 2014 20:23:13 -0600 Subject: [PATCH] [ticket/13306] allow 0 error types https://tracker.phpbb.com/browse/PHPBB3-13306 PHPBB3-13306 --- phpBB/phpbb/error_collector.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpBB/phpbb/error_collector.php b/phpBB/phpbb/error_collector.php index 50587cc4ef..688bc0c422 100644 --- a/phpBB/phpbb/error_collector.php +++ b/phpBB/phpbb/error_collector.php @@ -31,7 +31,7 @@ class error_collector function __construct($error_types = null) { $this->errors = array(); - $this->error_types = !empty($error_types) ? $error_types : error_reporting(); + $this->error_types = ($error_types !== null) ? $error_types : error_reporting(); } function install()