Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
51c3e85
)
MDL-27696 initialise arrays
author
Petr Skoda
<commits@skodak.org>
Tue, 19 Jul 2011 13:03:58 +0000
(15:03 +0200)
committer
Petr Skoda
<commits@skodak.org>
Tue, 19 Jul 2011 13:03:58 +0000
(15:03 +0200)
Credit goes to David Mudrak.
course/report/log/graph.php
patch
|
blob
|
blame
|
history
diff --git
a/course/report/log/graph.php
b/course/report/log/graph.php
index
679b778
..
a2c7ff2
100644
(file)
--- a/
course/report/log/graph.php
+++ b/
course/report/log/graph.php
@@
-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;