From 16417375598266479adb0f916a7c1ee776b81ebf Mon Sep 17 00:00:00 2001 From: Jason Oster Date: Fri, 16 Apr 2010 19:30:39 +0000 Subject: Revert changes to draw_functions.php --- functions/draw_functions.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'functions') diff --git a/functions/draw_functions.php b/functions/draw_functions.php index c20e04c..836d41f 100644 --- a/functions/draw_functions.php +++ b/functions/draw_functions.php @@ -31,12 +31,7 @@ function drawEventTimes ($start, $end, $long_event = FALSE) { $end_min = "00"; } } - $sta = ($sta_h * 60 + $sta_min); - $end = ($end_h * 60 + $end_min); - if ($sta < $end) - $draw_len = $end - $sta; - else - $draw_len = $sta - $end; + $draw_len = ($end_h * 60 + $end_min) - ($sta_h * 60 + $sta_min); return array ("draw_start" => ($sta_h . $sta_min), "draw_end" => ($end_h . $end_min), "draw_length" => $draw_len); } -- cgit v1.2.3