MDL-67063 core_h5p: return the correct default handler

This commit is contained in:
Sara Arjona 2020-03-11 18:18:09 +01:00
parent 63e821fb41
commit 7ae4a58229

View File

@ -62,7 +62,8 @@ class autoloader {
$handlers = self::get_all_handlers();
if (!empty($handlers)) {
// The default handler will be the first in the list.
$default = array_shift($handlers);
$keys = array_keys($handlers);
$default = array_shift($keys);
}
return $default;