forked from joomla/Component-Builder
Add JSON Check and decode before checking if it is an array.
fixes #786
This commit is contained in:
parent
576eac1a5a
commit
c8dbf279fe
@ -4343,7 +4343,13 @@ class Interpretation extends Fields
|
|||||||
. $this->setLine(__LINE__) . " Check if \$"
|
. $this->setLine(__LINE__) . " Check if \$"
|
||||||
. $default['on_field']
|
. $default['on_field']
|
||||||
. " is an array with values.";
|
. " is an array with values.";
|
||||||
$methods .= PHP_EOL . $this->_t(2) . "\$array = \$"
|
$methods .= PHP_EOL . $this->_t(2) . "\$array = ("
|
||||||
|
. $this->fileContentStatic[$this->hhh
|
||||||
|
. 'Component' . $this->hhh]
|
||||||
|
. "Helper::checkJson(\$"
|
||||||
|
. $default['on_field']
|
||||||
|
. ", true)) ? json_decode(\$"
|
||||||
|
. $default['on_field'] . ",true) : \$"
|
||||||
. $default['on_field'] . ";";
|
. $default['on_field'] . ";";
|
||||||
$methods .= PHP_EOL . $this->_t(2)
|
$methods .= PHP_EOL . $this->_t(2)
|
||||||
. "if (isset(\$array) && "
|
. "if (isset(\$array) && "
|
||||||
|
Loading…
Reference in New Issue
Block a user