From 403cb30bd5e261cd2847b22a0293a363cf2d1fce Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Tue, 9 Nov 2021 16:27:20 +0100 Subject: handle missing safety --- it_xml.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'it_xml.class') diff --git a/it_xml.class b/it_xml.class index 24970ba..57f4555 100644 --- a/it_xml.class +++ b/it_xml.class @@ -54,7 +54,7 @@ static function create($xmldata, $p = array()) function from_xml($xmldata, $p) { - $p += ['encoding' => ini_get('default_charset'), 'it_error' => !$p['safety'] ? false : ($p['safety'] == 2 ? ['fatal' => true] : [])]; + $p += ['encoding' => ini_get('default_charset'), 'it_error' => $p['safety'] === 0 ? false : ($p['safety'] == 2 ? ['fatal' => true] : [])]; $this->_p = $p; $this->_arrayforce = array_flip((array)$this->_p['forcearray']); $this->_stack = array(); -- cgit v1.2.3