Skip to content

Commit

Permalink
MDL-33430 Fix strict standards warning
Browse files Browse the repository at this point in the history
Only variables should be passed by reference.
  • Loading branch information
mudrd8mz committed Jun 21, 2012
1 parent d129c36 commit fb3a57e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backup/moodle2/restore_stepslib.php
Original file line number Diff line number Diff line change
Expand Up @@ -3315,7 +3315,8 @@ private function choose_repository(stdClass $info) {
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];
Expand Down

0 comments on commit fb3a57e

Please sign in to comment.