summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2021-11-09 16:27:20 +0100
committerUrban Müller2021-11-09 16:27:20 +0100
commit403cb30bd5e261cd2847b22a0293a363cf2d1fce (patch)
treeb1f357a3bef15db10d7cab992cd284ba2369bcd0
parent9a743ca0f69d11a5bee037aeb2573100d9c073ff (diff)
downloaditools-403cb30bd5e261cd2847b22a0293a363cf2d1fce.tar.gz
itools-403cb30bd5e261cd2847b22a0293a363cf2d1fce.tar.bz2
itools-403cb30bd5e261cd2847b22a0293a363cf2d1fce.zip
handle missing safety
-rw-r--r--it_xml.class2
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();