Index: trunk/calendar/inc/class.bocalendar.inc.php
===================================================================
--- trunk/calendar/inc/class.bocalendar.inc.php	(revision 7712)
+++ trunk/calendar/inc/class.bocalendar.inc.php	(revision 7730)
@@ -2871,6 +2871,6 @@
 			//verifica se todos os participantes rejeitaram o evento
 			for($i = 0; $i < count($sts); ++$i ){
-				if( $sts[i] === "R")
-					unset( $sts[i] );
+				if( $sts[$i] === "R")
+					unset( $sts[$i] );
 			}
 			
@@ -3667,9 +3667,9 @@
 														$varbuttom3 = "<form action=".$GLOBALS['phpgw_info']['server']['webserver_url']."/index.php?menuaction=calendar.uialarm.manager method='POST'>
 																		  		  <input type='submit' value='$lang4'>
-																		  		  <input type='hidden' name='cal_id' value=$event[id]>
+																		  		  <input type='hidden' name='cal_id' value={$event['id']}>
 																		  		   </form>";
 																				   
 														$lang5 = lang("Suggest new hour"); 
-														$varbuttom4 = "<form action=".$GLOBALS['phpgw_info']['server']['webserver_url']."/index.php?menuaction=calendar.uicalendar.view&cal_id=$event[id]&date=$newall3&type=1' method='POST'>
+														$varbuttom4 = "<form action=".$GLOBALS['phpgw_info']['server']['webserver_url']."/index.php?menuaction=calendar.uicalendar.view&cal_id={$event['id']}&date=$newall3&type=1' method='POST'>
 																		  		  <input type='submit' value='$lang5'>
 																		  		   </form>";
@@ -4083,5 +4083,5 @@
 				$to_notify = $event['participants'];
 			}
-			elseif ($this->check_perms(PHPGW_ACL_READ,$event))	// checks agains $this->owner set to $alarm[owner]
+			elseif ($this->check_perms(PHPGW_ACL_READ,$event))	// checks agains $this->owner set to $alarm['owner']
 			{
 				$to_notify[$alarm['owner']] = 'A';
@@ -4271,5 +4271,5 @@
 				$event['owner'] != $this->owner &&
 				$event['participants'][$this->owner] == 'R';
-			//echo "<p>rejected_no_show($event[title])='$ret': user=$this->owner, event-owner=$event[owner], status='".$event['participants'][$this->owner]."', show_rejected='".$this->prefs['calendar']['show_rejected']."'</p>\n";
+			//echo "<p>rejected_no_show($event['title'])='$ret': user=$this->owner, event-owner=$event['owner'], status='".$event['participants'][$this->owner]."', show_rejected='".$this->prefs['calendar']['show_rejected']."'</p>\n";
 			return $ret;
 		}
Index: trunk/calendar/inc/class.uicalendar.inc.php
===================================================================
--- trunk/calendar/inc/class.uicalendar.inc.php	(revision 7712)
+++ trunk/calendar/inc/class.uicalendar.inc.php	(revision 7730)
@@ -5755,5 +5755,6 @@
 			if ($control_data['action'] == lang('Delete selected contacts'))
 			{
-				for ($i=0; $i<count($control_data['delete']); ++$i)
+                $control_data_count = count($control_data['delete']);
+				for ($i=0; $i<$control_data_count; ++$i)
 				{
 					$id = $control_data['delete'][$i];
Index: trunk/calendar/inc/class.boholiday.inc.php
===================================================================
--- trunk/calendar/inc/class.boholiday.inc.php	(revision 7712)
+++ trunk/calendar/inc/class.boholiday.inc.php	(revision 7730)
@@ -387,5 +387,6 @@
 
 			$temp_locale = $GLOBALS['phpgw_info']['user']['preferences']['common']['country'];
-			for($i=0;$i<count($holidays);++$i)
+            $holidays_count = count($holidays);
+			for($i=0;$i<$holidays_count;++$i)
 			{
 				$c = $i;
@@ -442,5 +443,5 @@
 			else
 			{
-				$str = $GLOBALS['phpgw']->common->dateformatorder($holiday['occurence']>1900?$holiday['occurence']:'',$month,$holiday[day]);
+				$str = $GLOBALS['phpgw']->common->dateformatorder($holiday['occurence']>1900?$holiday['occurence']:'',$month,$holiday['day']);
 			}
 			if ($holiday['observance_rule'])
Index: trunk/calendar/templates/classic/header.inc.php
===================================================================
--- trunk/calendar/templates/classic/header.inc.php	(revision 7655)
+++ trunk/calendar/templates/classic/header.inc.php	(revision 7730)
@@ -105,5 +105,6 @@
 		if(isset($GLOBALS['HTTP_POST_VARS']['participants']) && $GLOBALS['HTTP_POST_VARS']['participants'])
 		{
-			for ($i=0;$i<count($GLOBALS['HTTP_POST_VARS']['participants']);++$i)
+            $globals_count = count($GLOBALS['HTTP_POST_VARS']['participants']);
+			for ($i=0;$i<$globals_count;++$i)
 			{
 				$base_hidden_vars .= '    <input type="hidden" name="participants[]" value="'.$GLOBALS['HTTP_POST_VARS']['participants'][$i].'">'."\n";
