]> git.mjollnir.org Git - moodle.git/commitdiff
Little bit of performance improvement.
authorscyrma <scyrma>
Tue, 19 Aug 2008 06:03:18 +0000 (06:03 +0000)
committerscyrma <scyrma>
Tue, 19 Aug 2008 06:03:18 +0000 (06:03 +0000)
question/format/aiken/format.php

index ef3b943672ef6bf622a325202aada02af06fcb26..f11b01ad528b75acea9bba414ddaa2a8e62a4f45 100644 (file)
@@ -36,7 +36,8 @@ class qformat_aiken extends qformat_default {
             $stp = strpos($line,$endchar,0);
             $newlines = explode($endchar,$line);
             $foundQ = 0;
-            for ($i=0; $i < count($newlines);$i++){
+            $linescount = count($newlines);
+            for ($i=0; $i < $linescount; $i++) {
                 $nowline = trim($newlines[$i]);
                 ///Go through the array and build an object called $question
                 ///When done, add $question to $questions