diff --git a/src/components/com_tjucm/site/models/itemform.php b/src/components/com_tjucm/site/models/itemform.php index e71f4405..99989d3d 100644 --- a/src/components/com_tjucm/site/models/itemform.php +++ b/src/components/com_tjucm/site/models/itemform.php @@ -561,7 +561,7 @@ public function save($data) $tableParentData = $this->getTable(); $tableParentData->load(array('id' => $data['parent_id'])); - if (!property_exists($tableParentData->id) && (!$tableParentData->id)) + if (!property_exists($tableParentData, 'id') && (!$tableParentData->id)) { $this->setError(Text::_('COM_TJUCM_INVALID_PARENT_ID'));