-
Sub-task
-
Resolution: Fixed
-
Critical
-
None
-
2.0
-
MOODLE_20_STABLE
-
Moderate
there are places where we can find:
for($i = 1; $i < sizeof($data); $i++) {...
these should really be
$datasize = sizeof($data);
for($i = 1; $i < $datasize; $i++) { ...
this doesn't apply to places where the loop condition expression on both sides of the expression are dynamic.