From cead5c727147faac362e742aa7bcecf07f68cd99 Mon Sep 17 00:00:00 2001
From: thomascube <thomas@roundcube.net>
Date: Thu, 18 May 2006 17:24:42 -0400
Subject: [PATCH] Updated CHANGELOG

---
 program/lib/imap.inc |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/program/lib/imap.inc b/program/lib/imap.inc
index 6067d81..51db669 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 ...)
 
 ********************************************************/
@@ -613,15 +614,15 @@
 	//$month_a=array("Jan"=>1,"Feb"=>2,"Mar"=>3,"Apr"=>4,"May"=>5,"Jun"=>6,"Jul"=>7,"Aug"=>8,"Sep"=>9,"Oct"=>10,"Nov"=>11,"Dec"=>12);
 	$month_str=$a[1];
 	$month=$IMAP_MONTHS[$month_str];
-	$day=$a[0];
-	$year=$a[2];
+	$day=(int)$a[0];
+	$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);

--
Gitblit v1.9.1