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 517d606 commit c0e1e42
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 Original file line Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@
$reducedays = 0; $reducedays = 0;
} }


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


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

0 comments on commit c0e1e42

Please sign in to comment.