Skip to content

Commit

Permalink
Fix finder helper addContentType null value (joomla#43052)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fedik authored Aug 30, 2024
1 parent d04b139 commit 5772deb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion administrator/components/com_finder/src/Indexer/Helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ public static function addContentType($title, $mime = null)
$query->clear()
->insert($db->quoteName('#__finder_types'))
->columns([$db->quoteName('title'), $db->quoteName('mime')])
->values($db->quote($title) . ', ' . $db->quote($mime));
->values($db->quote($title) . ', ' . $db->quote($mime ?? ''));
$db->setQuery($query);
$db->execute();

Expand Down

0 comments on commit 5772deb

Please sign in to comment.