Fixed warning about uninitialized variable.

This commit is contained in:
paul 2006-11-28 17:43:18 +00:00
parent b07fe34988
commit 0059d67a54
1 changed files with 1 additions and 0 deletions

View File

@ -502,6 +502,7 @@ class uiScheduler extends uiCalendar {
return false;
}
$duration = 0;
foreach ($arr as $val) {
$duration += (uiScheduler::datetimeToTimestamp($val['end'])-uiScheduler::datetimeToTimestamp($val['start']))/86400*100;
}