[ticket/13306] allow 0 error types

https://tracker.phpbb.com/browse/PHPBB3-13306

PHPBB3-13306
This commit is contained in:
omniError 2014-11-11 20:23:13 -06:00
parent efd4b43c1b
commit 834a93f76c

View file

@ -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()