diff --git a/libraries/legacy/model/admin.php b/libraries/legacy/model/admin.php index 0aebc689835ef..3cf25324693f0 100644 --- a/libraries/legacy/model/admin.php +++ b/libraries/legacy/model/admin.php @@ -197,16 +197,7 @@ public function batch($commands, $pks, $contexts) $this->type = $type->getTypeByAlias($this->typeAlias); } - if ($this->type === false) - { - $type = new JUcmType; - $this->type = $type->getTypeByAlias($this->typeAlias); - $typeAlias = $this->type->type_alias; - } - else - { - $typeAlias = $this->type->type_alias; - } + $typeAlias = $this->type->type_alias; $this->tagsObserver = $this->table->getObserverOfClass('JTableObserverTags');