mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
MDL-33430 Fix strict standards warning
Only variables should be passed by reference.
This commit is contained in:
parent
d129c3608f
commit
fb3a57e2d4
@ -3315,7 +3315,8 @@ class restore_process_file_aliases_queue extends restore_execution_step {
|
||||
if (empty($ris)) {
|
||||
return null;
|
||||
}
|
||||
$repoid = reset(array_keys($ris));
|
||||
$repoids = array_keys($ris);
|
||||
$repoid = reset($repoids);
|
||||
try {
|
||||
$this->cachereposbytype[$info->oldfile->repositorytype] = repository::get_repository_by_id($repoid, SYSCONTEXTID);
|
||||
return $this->cachereposbytype[$info->oldfile->repositorytype];
|
||||
|
Loading…
x
Reference in New Issue
Block a user