diff --git a/components/com_tags/models/tag.php b/components/com_tags/models/tag.php index 9eecc42e93036..1d280e2a832ce 100644 --- a/components/com_tags/models/tag.php +++ b/components/com_tags/models/tag.php @@ -262,15 +262,15 @@ public function getItem($pk = null) { $this->item = false; - if (empty($id)) + if (empty($pk)) { - $id = $this->getState('tag.id'); + $pk = $this->getState('tag.id'); } // Get a level row instance. $table = JTable::getInstance('Tag', 'TagsTable'); - $idsArray = explode(',', $id); + $idsArray = explode(',', $pk); // Attempt to load the rows into an array. foreach ($idsArray as $id)