Skip to content

Commit

Permalink
MDL-27696 initialise arrays
Browse files Browse the repository at this point in the history
Credit goes to David Mudrak.
  • Loading branch information
skodak committed Jul 19, 2011
1 parent 51c3e85 commit 8aa74f8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions course/report/log/graph.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@
$reducedays = 0;
}

$days = array();
$i = 0;
while ($timestart < $timenow) {
$timefinish = $timestart + 86400;
Expand Down Expand Up @@ -167,6 +168,7 @@
}
$dayfinish = $daystart + 86400;

$hours = array();
for ($i=0; $i<=23; $i++) {
$logs[$i] = 0;
$hour = $daystart + $i * 3600;
Expand Down

0 comments on commit 8aa74f8

Please sign in to comment.