Index: trunk/calendar/inc/class.boicalendar.inc.php
===================================================================
--- trunk/calendar/inc/class.boicalendar.inc.php	(revision 6057)
+++ trunk/calendar/inc/class.boicalendar.inc.php	(revision 7655)
@@ -1434,5 +1434,5 @@
 			//$this->debug('parse_parameters array return_value: '._debug_array($return_value,False));
 
-		for ($i = 0; $i < count($return_value); $i++) {
+		for ($i = 0; $i < count($return_value); ++$i) {
 				$name = strtolower($return_value[$i]['param']);
 				$value = $this->strip_quotes($return_value[$i]['value']);
@@ -1591,5 +1591,5 @@
 			if (!empty ($event['x_type'])) {
 					$c_x_type = count($event['x_type']);
-				for ($j = 0; $j < $c_x_type; $j++) {
+				for ($j = 0; $j < $c_x_type; ++$j) {
 					$str .= ';' . $this->build_xtype($event['x_type'][$j], '=');
 					}
@@ -1637,5 +1637,5 @@
 		if (!empty ($event['x_type'])) {
 				$c_x_type = count($event['x_type']);
-			for ($j = 0; $j < $c_x_type; $j++) {
+			for ($j = 0; $j < $c_x_type; ++$j) {
 				$str .= ';' . $this->build_xtype($event['x_type'][$j], '=');
 				}
@@ -1661,5 +1661,5 @@
 					if (!empty ($event[$value])) {
 						if ($multiples && $value != 'exdate') {
-							for ($i = 0; $i < count($event[$value]); $i++) {
+							for ($i = 0; $i < count($event[$value]); ++$i) {
 								$str .= $this->fold(strtoupper(str_replace('_', '-', $value)) . $this->build_parameters($event[$value][$i], $value));
 								}
@@ -1674,5 +1674,5 @@
 				case 'uri' :
 					if (!empty ($event[$value])) {
-						for ($i = 0; $i < count($event[$value]); $i++) {
+						for ($i = 0; $i < count($event[$value]); ++$i) {
 							$str .= $this->fold(strtoupper(str_replace('_', '-', $value)) . $this->build_parameters($event[$value][$i], $to_text));
 							}
@@ -1682,5 +1682,5 @@
 					if (!empty ($event[$value])) {
 						if ($multiples) {
-							for ($i = 0; $i < count($event[$value]); $i++) {
+							for ($i = 0; $i < count($event[$value]); ++$i) {
 								$str .= $this->fold(strtoupper(str_replace('_', '-', $value)) . $this->build_parameters($event[$value][$i], $value));
 							}
@@ -1712,5 +1712,5 @@
 						if (@ $this->parameter[$key]['type'] != 'function') {
 							if ($multiples && count($event[$value]) > 1) {
-								for ($i = 0; $i < count($event[$value]); $i++) {
+								for ($i = 0; $i < count($event[$value]); ++$i) {
 									$str .= $this->fold(strtoupper(str_replace('_', '-', $value)) . $this->build_parameters($event[$value][$i], $value));
 								}
@@ -1721,5 +1721,5 @@
 								$function = $this->parameter[$value]['function'];
 							if ($multiples) {
-								for ($i = 0; $i < count($event[$value]); $i++) {
+								for ($i = 0; $i < count($event[$value]); ++$i) {
 									$str .= $this->fold(strtoupper(str_replace('_', '-', $value)) . ':' . $this-> $function ($event[$value][$i]));
 								}
@@ -1732,5 +1732,5 @@
 				case 'cal-address' :
 					if (is_array($event[$value][0])) {
-						for ($j = 0; $j < count($event[$value]); $j++) {
+						for ($j = 0; $j < count($event[$value]); ++$j) {
 							$temp_output = $this->build_parameters($event[$value][$j], $value);
 							if ($temp_output) {
@@ -1748,5 +1748,5 @@
 			}
 		if (!empty ($event['x_type'])) {
-			for ($i = 0; $i < count($event['x_type']); $i++) {
+			for ($i = 0; $i < count($event['x_type']); ++$i) {
 				$str .= $this->build_xtype($event['x_type'][$i], ':');
 				}
@@ -1755,5 +1755,5 @@
 		if ($ical_item == 'vtimezone') {
 			if ($event['tzdata']) {
-				for ($k = 0; $k < count($event['tzdata']); $k++) {
+				for ($k = 0; $k < count($event['tzdata']); ++$k) {
 					$str .= 'BEGIN:' . strtoupper($event['tzdata'][$k]['type']) . "\r\n";
 					$str .= $this->build_card_internals(strtolower($event['tzdata'][$k]['type']), $event['tzdata'][$k]);
@@ -1763,5 +1763,5 @@
 			}
 		elseif ($event['alarm']) {
-			for ($k = 0; $k < count($event['alarm']); $k++) {
+			for ($k = 0; $k < count($event['alarm']); ++$k) {
 				$str .= 'BEGIN:VALARM' . "\r\n";
 				$str .= $this->build_card_internals('valarm', $event['alarm'][$k]);
@@ -2632,5 +2632,5 @@
 					$attendee_count = count($ical['attendee']);
 
-				for ($j = 0; $j < $attendee_count; $j++) {
+				for ($j = 0; $j < $attendee_count; ++$j) {
 					if ($this->is_owner($ical['attendee'][$j])) {
 						$so_event->add_attribute('participants', $this->switch_to_phpgw_status($ical['attendee'][$j]['partstat']), (int) $GLOBALS['phpgw_info']['user']['account_id']);
@@ -2788,5 +2788,5 @@
 
 	$c_events = count($ical['event']);
-	for ($i = 0; $i < $c_events; $i++) {
+	for ($i = 0; $i < $c_events; ++$i) {
 		$ex_participants = new exParticipants();
 
@@ -2832,5 +2832,5 @@
 						$c_attendees = count($ical['event'][$i]['attendee']);
 						$all_attendees = '';
-			for ($a = 0; $a < $c_attendees; $a++) {
+			for ($a = 0; $a < $c_attendees; ++$a) {
 				$cname = '"' . $ical['event'][$i]['attendee'][$a]['cn'] . '"';
 							$email = $ical['event'][$i]['attendee'][$a]['mailto']['user'];
