aboutsummaryrefslogtreecommitdiffstats
path: root/functions/draw_functions.php
diff options
context:
space:
mode:
authorJim Hu <jimhu@users.sourceforge.net>2008-12-20 03:22:54 +0000
committerJim Hu <jimhu@users.sourceforge.net>2008-12-20 03:22:54 +0000
commit9b00469b471a8b159c60ecca333f0f7064ba1d27 (patch)
treee4716278c994d577c67a9bf3887c453c56b67030 /functions/draw_functions.php
parent3734188aa20c0fad1610e5de3078d7d022694bbd (diff)
downloadphpicalendar-9b00469b471a8b159c60ecca333f0f7064ba1d27.tar.gz
phpicalendar-9b00469b471a8b159c60ecca333f0f7064ba1d27.tar.bz2
phpicalendar-9b00469b471a8b159c60ecca333f0f7064ba1d27.zip
misc error warnings and notices
Diffstat (limited to 'functions/draw_functions.php')
-rw-r--r--functions/draw_functions.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/functions/draw_functions.php b/functions/draw_functions.php
index 20938a9..cc1c363 100644
--- a/functions/draw_functions.php
+++ b/functions/draw_functions.php
@@ -5,8 +5,8 @@ function drawEventTimes ($start, $end) {
global $phpiCal_config;
$gridLength = $phpiCal_config->gridLength;
preg_match ('/([0-9]{2})([0-9]{2})/', $start, $time);
- $sta_h = $time[1];
- $sta_min = $time[2];
+ $sta_h = @$time[1];
+ $sta_min = @$time[2];
$sta_min = sprintf("%02d", floor($sta_min / $gridLength) * $gridLength);
if ($sta_min == 60) {
$sta_h = sprintf("%02d", ($sta_h + 1));
@@ -14,8 +14,8 @@ function drawEventTimes ($start, $end) {
}
preg_match ('/([0-9]{2})([0-9]{2})/', $end, $time);
- $end_h = $time[1];
- $end_min = $time[2];
+ $end_h = @$time[1];
+ $end_min = @$time[2];
$end_min = sprintf("%02d", floor($end_min / $gridLength) * $gridLength);
if ($end_min == 60) {
$end_h = sprintf("%02d", ($end_h + 1));

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