MDL-33430 Fix strict standards warning

Only variables should be passed by reference.
This commit is contained in:
David Mudrák 2012-06-21 12:27:06 +02:00
parent d129c3608f
commit fb3a57e2d4

View File

@ -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];