diff options
-rw-r--r-- | it_xml.class | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |