diff --git a/administrator/components/com_finder/helpers/indexer/helper.php b/administrator/components/com_finder/helpers/indexer/helper.php index 312c2f906d745..42dd3bb874d53 100644 --- a/administrator/components/com_finder/helpers/indexer/helper.php +++ b/administrator/components/com_finder/helpers/indexer/helper.php @@ -294,8 +294,15 @@ public static function addContentType($title, $mime = null) $db->setQuery($query); $db->execute(); + $type = new stdClass; + $type->title = $title; + $type->mime = $mime; + $type->id = (int) $db->insertid(); + + $types[$title] = $type; + // Return the new id. - return (int) $db->insertid(); + return $type->id; } /**