diff options
author | Urban Müller | 2021-11-09 16:27:20 +0100 |
---|---|---|
committer | Urban Müller | 2021-11-09 16:27:20 +0100 |
commit | 403cb30bd5e261cd2847b22a0293a363cf2d1fce (patch) | |
tree | b1f357a3bef15db10d7cab992cd284ba2369bcd0 /it_xml.class | |
parent | 9a743ca0f69d11a5bee037aeb2573100d9c073ff (diff) | |
download | itools-403cb30bd5e261cd2847b22a0293a363cf2d1fce.tar.gz itools-403cb30bd5e261cd2847b22a0293a363cf2d1fce.tar.bz2 itools-403cb30bd5e261cd2847b22a0293a363cf2d1fce.zip |
handle missing safety
Diffstat (limited to 'it_xml.class')
-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(); |