Skip to content

Commit 70c0c93

Browse files
author
Alessandro Mattiello
committed
fix
1 parent d478552 commit 70c0c93

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

LSS/XML2Array.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class XML2Array {
4545

4646
private static $xml = null;
4747
private static $encoding = 'UTF-8';
48-
private static $prefix_attributes = '@';
48+
private static $prefix_attributes = '';
4949

5050
/**
5151
* Initialize the root XML node [optional]
@@ -145,7 +145,7 @@ private static function &convert($node) {
145145
if(!is_array($output)) {
146146
$output = array(static::$prefix_attributes.'value' => $output);
147147
}
148-
$output['@attributes'] = $a;
148+
$output[static::$prefix_attributes.'attributes'] = $a;
149149
}
150150
break;
151151
}

0 commit comments

Comments
 (0)