]> git.mxchange.org Git - friendica.git/blobdiff - include/xml.php
Merge pull request #3284 from annando/issue-3278
[friendica.git] / include / xml.php
index 911109f0c46012d07278fbfe0907f498420a411b..9f7de8f33e66732fc790840eaf2e3cf3f0ea03cb 100644 (file)
@@ -50,7 +50,7 @@ class xml {
                        }
                }
 
-               foreach ($array as $key => $value) {
+               foreach($array as $key => $value) {
                        if (!isset($element) AND isset($xml)) {
                                $element = $xml;
                        }
@@ -305,7 +305,7 @@ class xml {
                        //Set the attributes too.
                        if (isset($attributes) and $get_attributes) {
                                foreach ($attributes as $attr => $val) {
-                                       if ($priority == 'tag') {
+                                       if($priority == 'tag') {
                                                $attributes_data[$attr] = $val;
                                        } else {
                                                $result['@attributes'][$attr] = $val; // Set all the attributes in a array called 'attr'