mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
MDL-27696 initialise arrays
Credit goes to David Mudrak.
This commit is contained in:
parent
51c3e855d0
commit
8aa74f821d
@ -94,6 +94,7 @@ switch ($type) {
|
||||
$reducedays = 0;
|
||||
}
|
||||
|
||||
$days = array();
|
||||
$i = 0;
|
||||
while ($timestart < $timenow) {
|
||||
$timefinish = $timestart + 86400;
|
||||
@ -167,6 +168,7 @@ switch ($type) {
|
||||
}
|
||||
$dayfinish = $daystart + 86400;
|
||||
|
||||
$hours = array();
|
||||
for ($i=0; $i<=23; $i++) {
|
||||
$logs[$i] = 0;
|
||||
$hour = $daystart + $i * 3600;
|
||||
|
Loading…
x
Reference in New Issue
Block a user