From 264d4e55af946cdfa192d5e7733d4c71afa71eba Mon Sep 17 00:00:00 2001 From: CaMer0n Date: Mon, 21 Sep 2009 22:22:14 +0000 Subject: [PATCH] Notice removal --- e107_handlers/xml_class.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/e107_handlers/xml_class.php b/e107_handlers/xml_class.php index fd0ae88bf..8f66340ae 100644 --- a/e107_handlers/xml_class.php +++ b/e107_handlers/xml_class.php @@ -9,8 +9,8 @@ * Simple XML Parser * * $Source: /cvs_backup/e107_0.8/e107_handlers/xml_class.php,v $ - * $Revision: 1.28 $ - * $Date: 2009-09-21 21:53:38 $ + * $Revision: 1.29 $ + * $Date: 2009-09-21 22:22:14 $ * $Author: e107coders $ */ @@ -555,14 +555,14 @@ class xmlClass */ function parseStringTags($vars) { - if(!$this->stringTags) + if(!$this->stringTags || !is_array($vars)) { return $vars; } foreach($this->stringTags as $vl) { - if(is_array($vars[$vl]) && varset($vars[$vl][0])) + if(varset($vars[$vl][0])) { $vars[$vl] = $vars[$vl][0]; }