Skip to content

Commit

Permalink
Fix finder helper addContentType null value
Browse files Browse the repository at this point in the history
  • Loading branch information
Fedik committed Mar 16, 2024
1 parent 75ecb67 commit 1738f32
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 1738f32

Please sign in to comment.