summaryrefslogtreecommitdiff
path: root/program/lib/imap.inc
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2006-05-05 17:03:39 +0000
committerthomascube <thomas@roundcube.net>2006-05-05 17:03:39 +0000
commit6eeb17d833f724a9324e5efe107fa7129f8fb13c (patch)
treee977bea166f57c6d726c3a1afe89ada412cdb5a8 /program/lib/imap.inc
parentfd372599212f4cdb077b1694f448d88e9585eec1 (diff)
Casting date parts in iil_StrToTime() to avoid warnings
Diffstat (limited to 'program/lib/imap.inc')
-rw-r--r--program/lib/imap.inc9
1 files changed, 5 insertions, 4 deletions
diff --git a/program/lib/imap.inc b/program/lib/imap.inc
index 9f63cdc33..51db669c6 100644
--- a/program/lib/imap.inc
+++ b/program/lib/imap.inc
@@ -43,6 +43,7 @@
- Removed <br> from error messages (better for logging)
- Added patch to iil_C_Sort() enabling UID SORT commands
- Added function iil_C_ID2UID()
+ - Casting date parts in iil_StrToTime() to avoid mktime() warnings
- Removed some debuggers (echo ...)
********************************************************/
@@ -614,14 +615,14 @@ function iil_StrToTime($str){
$month_str=$a[1];
$month=$IMAP_MONTHS[$month_str];
$day=(int)$a[0];
- $year=$a[2];
+ $year=(int)$a[2];
$time=$a[3];
$tz_str = $a[4];
$tz = substr($tz_str, 0, 3);
- $ta=explode(":",$time);
+ $ta = explode(":",$time);
$hour=(int)$ta[0]-(int)$tz;
- $minute=$ta[1];
- $second=$ta[2];
+ $minute=(int)$ta[1];
+ $second=(int)$ta[2];
//make UNIX timestamp
$time2 = mktime($hour, $minute, $second, $month, $day, $year);