From 0059d67a5427a9f0603c62131c7427c3bf156219 Mon Sep 17 00:00:00 2001 From: paul Date: Tue, 28 Nov 2006 17:43:18 +0000 Subject: [PATCH] Fixed warning about uninitialized variable. --- campcaster/src/modules/htmlUI/var/ui_scheduler.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/campcaster/src/modules/htmlUI/var/ui_scheduler.class.php b/campcaster/src/modules/htmlUI/var/ui_scheduler.class.php index 1cbab5cbb..ee4e225c9 100644 --- a/campcaster/src/modules/htmlUI/var/ui_scheduler.class.php +++ b/campcaster/src/modules/htmlUI/var/ui_scheduler.class.php @@ -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; }