summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Arthur <flowerysong00@yahoo.com>2011-04-26 16:37:53 -0400
committerPaul Arthur <flowerysong00@yahoo.com>2011-04-26 16:37:53 -0400
commitd18fe3e95dc3335684c2f896cb322a9fb53d830f (patch)
tree022449878f934595dab24f91f965c17a4b632d2a
parented6dc3df9ed371d3ed58ce998ba74dc00b3da579 (diff)
downloadampache-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.php2
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>'];