aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Oster <parasytic@users.sourceforge.net>2010-04-16 19:30:39 +0000
committerJason Oster <parasytic@users.sourceforge.net>2010-04-16 19:30:39 +0000
commit16417375598266479adb0f916a7c1ee776b81ebf (patch)
tree1cf4560f8305d16e5e3775645cc60c2cf71271e9
parent694d2fb6921bc2e48051eb8e2c20bd0fe1dbd609 (diff)
downloadphpicalendar-16417375598266479adb0f916a7c1ee776b81ebf.tar.gz
phpicalendar-16417375598266479adb0f916a7c1ee776b81ebf.tar.bz2
phpicalendar-16417375598266479adb0f916a7c1ee776b81ebf.zip
Revert changes to draw_functions.php
-rw-r--r--functions/draw_functions.php7
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);
}

© 2014-2024 Faster IT GmbH | imprint | privacy policy