MDL-33430 Fix strict standards warning
authorDavid Mudrák <david@moodle.com>
Thu, 21 Jun 2012 10:27:06 +0000 (12:27 +0200)
committerDavid Mudrák <david@moodle.com>
Thu, 21 Jun 2012 10:28:09 +0000 (12:28 +0200)
Only variables should be passed by reference.

backup/moodle2/restore_stepslib.php

index 503521c..91048d8 100644 (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];