diff options
author | Paul Arthur <flowerysong00@yahoo.com> | 2011-04-26 16:37:53 -0400 |
---|---|---|
committer | Paul Arthur <flowerysong00@yahoo.com> | 2011-04-26 16:37:53 -0400 |
commit | d18fe3e95dc3335684c2f896cb322a9fb53d830f (patch) | |
tree | 022449878f934595dab24f91f965c17a4b632d2a | |
parent | ed6dc3df9ed371d3ed58ce998ba74dc00b3da579 (diff) | |
download | ampache-d18fe3e95dc3335684c2f896cb322a9fb53d830f.tar.gz ampache-d18fe3e95dc3335684c2f896cb322a9fb53d830f.tar.bz2 ampache-d18fe3e95dc3335684c2f896cb322a9fb53d830f.zip |
Reset $attribute inside keyed_array loop.
Also avoids PHP warnings due to uninitialised variables.
-rw-r--r-- | lib/class/xmldata.class.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/class/xmldata.class.php b/lib/class/xmldata.class.php index 753cf684..6a91ef00 100644 --- a/lib/class/xmldata.class.php +++ b/lib/class/xmldata.class.php @@ -205,7 +205,7 @@ class xmlData { // Foreach it foreach ($array as $key=>$value) { - + $attribute = ''; // See if the key has attributes if (is_array($value) AND isset($value['<attributes>'])) { $attribute = ' ' . $value['<attributes>']; |