mirror of
https://github.com/moodle/moodle.git
synced 2025-02-08 09:02:07 +01:00
Might make it faster...
This commit is contained in:
parent
eba6af755c
commit
e10e887905
@ -61,10 +61,10 @@ abstract class convert_helper {
|
||||
global $DB;
|
||||
|
||||
// Attempt to retrieve the contextid
|
||||
$context = $DB->get_record('backup_ids_temp', array('itemid' => $instance, 'info' => $component));
|
||||
$contextid = $DB->get_field('backup_ids_temp', 'id', array('itemid' => $instance, 'info' => $component));
|
||||
|
||||
if ($context) {
|
||||
return $context->id;
|
||||
if (!empty($contextid)) {
|
||||
return $contextid;
|
||||
}
|
||||
|
||||
$context = new stdClass;
|
||||
|
Loading…
x
Reference in New Issue
Block a user