From d18fe3e95dc3335684c2f896cb322a9fb53d830f Mon Sep 17 00:00:00 2001 From: Paul Arthur Date: Tue, 26 Apr 2011 16:37:53 -0400 Subject: Reset $attribute inside keyed_array loop. Also avoids PHP warnings due to uninitialised variables. --- lib/class/xmldata.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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[''])) { $attribute = ' ' . $value['']; -- cgit