diff options
author | Jason Oster <parasytic@users.sourceforge.net> | 2010-04-16 19:30:39 +0000 |
---|---|---|
committer | Jason Oster <parasytic@users.sourceforge.net> | 2010-04-16 19:30:39 +0000 |
commit | 16417375598266479adb0f916a7c1ee776b81ebf (patch) | |
tree | 1cf4560f8305d16e5e3775645cc60c2cf71271e9 /functions/draw_functions.php | |
parent | 694d2fb6921bc2e48051eb8e2c20bd0fe1dbd609 (diff) | |
download | phpicalendar-16417375598266479adb0f916a7c1ee776b81ebf.tar.gz phpicalendar-16417375598266479adb0f916a7c1ee776b81ebf.tar.bz2 phpicalendar-16417375598266479adb0f916a7c1ee776b81ebf.zip |
Revert changes to draw_functions.php
Diffstat (limited to 'functions/draw_functions.php')
-rw-r--r-- | functions/draw_functions.php | 7 |
1 files changed, 1 insertions, 6 deletions
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); } |