aboutsummaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
Diffstat (limited to 'functions')
-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