29
0
mirror of https://github.com/joomla/joomla-cms.git synced 2024-06-17 17:44:57 +00:00

Merge remote-tracking branch 'Joomla/4.4-dev' into upmerges/2024-05-27

This commit is contained in:
Benjamin Trenkle 2024-05-27 00:20:34 +02:00
commit 2ca3737858
No known key found for this signature in database
GPG Key ID: 260C401E8F8A2574

View File

@ -254,8 +254,16 @@ class Helper
$db->setQuery($query);
$db->execute();
// Cache the result
$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;
}
/**