X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fxml.php;h=9f7de8f33e66732fc790840eaf2e3cf3f0ea03cb;hb=0ae92f0e7250282ec592edad14607f6c1a5554a8;hp=911109f0c46012d07278fbfe0907f498420a411b;hpb=9c2c4839968169a191084d6d2b0d629d82430e67;p=friendica.git diff --git a/include/xml.php b/include/xml.php index 911109f0c4..9f7de8f33e 100644 --- a/include/xml.php +++ b/include/xml.php @@ -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'