Permalink
Browse files

MDL-27696 initialise arrays

Credit goes to David Mudrak.
  • Loading branch information...
1 parent fc7224b commit feccdaa0fff6d9608444b4651ac070e94bf494d3 @skodak skodak committed Jul 19, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 course/report/log/graph.php
@@ -94,6 +94,7 @@
$reducedays = 0;
}
+ $days = array();
$i = 0;
while ($timestart < $timenow) {
$timefinish = $timestart + 86400;
@@ -167,6 +168,7 @@
}
$dayfinish = $daystart + 86400;
+ $hours = array();
for ($i=0; $i<=23; $i++) {
$logs[$i] = 0;
$hour = $daystart + $i * 3600;

0 comments on commit feccdaa

Please sign in to comment.