1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-04 21:57:51 +02:00

SimpleParse Fix

This commit is contained in:
Cameron
2012-12-02 19:10:07 -08:00
parent b52669cc81
commit 4f33f78da4

View File

@@ -738,8 +738,12 @@ class e_parse
{ {
$unset = ($this->replaceUnset !== false ? $this->replaceUnset : $tmp[0]); $unset = ($this->replaceUnset !== false ? $this->replaceUnset : $tmp[0]);
$key = $tmp[1]; $key = $tmp[1];
return ($this->replaceVars[$key] !== null ? $this->replaceVars[$key]: $unset); if(is_array($this->replaceVars))
// return ($this->replaceVars->$tmp[1] !== null ? $this->replaceVars->$tmp[1] : $unset); // Doesn't work. {
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) function htmlwrap($str, $width, $break = "\n", $nobreak = "a", $nobr = "pre", $utf = FALSE)