]> git.mxchange.org Git - friendica.git/blobdiff - include/xml.php
Parameter should fit ...
[friendica.git] / include / xml.php
index a9f4679b48302ab8aabfc74e79e827a300d57d87..c184b5099ed758a30c961cc20e5438489f3aa8b1 100644 (file)
@@ -323,7 +323,7 @@ class xml {
 
                        if ($type == "open") {   // The starting of the tag '<tag>'
                                $parent[$level-1] = &$current;
-                               if (!is_array($current) or (!in_array($tag, array_keys($current)))) { // Insert New tag
+                               if (!is_array($current) || (!in_array($tag, array_keys($current)))) { // Insert New tag
                                        $current[$tag] = $result;
                                        if ($attributes_data) {
                                                $current[$tag. '_attr'] = $attributes_data;