From 4f33f78da4287438c1a1006a27a73b99e91aed61 Mon Sep 17 00:00:00 2001 From: Cameron Date: Sun, 2 Dec 2012 19:10:07 -0800 Subject: [PATCH] SimpleParse Fix --- e107_handlers/e_parse_class.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/e107_handlers/e_parse_class.php b/e107_handlers/e_parse_class.php index 5d6de4479..9a7977b4a 100644 --- a/e107_handlers/e_parse_class.php +++ b/e107_handlers/e_parse_class.php @@ -738,8 +738,12 @@ class e_parse { $unset = ($this->replaceUnset !== false ? $this->replaceUnset : $tmp[0]); $key = $tmp[1]; - return ($this->replaceVars[$key] !== null ? $this->replaceVars[$key]: $unset); - // return ($this->replaceVars->$tmp[1] !== null ? $this->replaceVars->$tmp[1] : $unset); // Doesn't work. + if(is_array($this->replaceVars)) + { + return ($this->replaceVars[$key] !== null ? $this->replaceVars[$key]: $unset); + } + // + return ($this->replaceVars->$tmp[1] !== null ? $this->replaceVars->$tmp[1] : $unset); // Doesn't work. } function htmlwrap($str, $width, $break = "\n", $nobreak = "a", $nobr = "pre", $utf = FALSE)