Prevent getItem from clearing $item->params #186

Merged
stutteringp0et merged 1 commits from patch-1 into master 2017-11-24 20:20:44 +00:00
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ class ###Component###Model###View### extends JModelAdmin
{###LICENSE_LOCKED_CHECK###
if ($item = parent::getItem($pk))
{
if (!empty($item->params))
if (!empty($item->params) && !is_array($item->params))
{
// Convert the params field to an array.
$registry = new Registry;