1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 20:00:37 +02:00

Issue #2057 Avoid messing with array values in toForm()

This commit is contained in:
Cameron
2016-11-27 15:13:57 -08:00
parent 77f2255dfd
commit 8c79788c84
2 changed files with 4 additions and 2 deletions

View File

@@ -789,7 +789,7 @@ class e_parse extends e_parser
$search = array('&#036;', '&quot;', '<', '>');
$replace = array('$', '"', '&lt;', '&gt;');
$text = str_replace($search, $replace, $text);
if (e107::wysiwyg() !== true)
if (e107::wysiwyg() !== true && is_string($text))
{
// fix for utf-8 issue with html_entity_decode(); ???
$text = urldecode($text);

View File

@@ -2797,7 +2797,9 @@ class e_form
/**
* Render a Breadcrumb in Bootstrap format.
* @param $array
* @param $array
* @param $array[url]
* @param $array[text]
*/
function breadcrumb($array)
{