Fixed warning about uninitialized variable.
This commit is contained in:
parent
b07fe34988
commit
0059d67a54
1 changed files with 1 additions and 0 deletions
|
@ -502,6 +502,7 @@ class uiScheduler extends uiCalendar {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$duration = 0;
|
||||||
foreach ($arr as $val) {
|
foreach ($arr as $val) {
|
||||||
$duration += (uiScheduler::datetimeToTimestamp($val['end'])-uiScheduler::datetimeToTimestamp($val['start']))/86400*100;
|
$duration += (uiScheduler::datetimeToTimestamp($val['end'])-uiScheduler::datetimeToTimestamp($val['start']))/86400*100;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue