Changeset 7673 for trunk/calendar/inc/class.uicalendar.inc.php
- Timestamp:
- 12/18/12 16:15:29 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/calendar/inc/class.uicalendar.inc.php
r7655 r7673 328 328 ); 329 329 } 330 for($l=0;$l<count($var);++$l) 330 $var_count = count($var); 331 for($l=0;$l<$var_count;++$l) 331 332 { 332 333 $this->output_template_array($mini_cal_tpl,'monthweek_day','mini_day',$var[$l]); … … 1331 1332 $str = ''; 1332 1333 1333 for($i=0;$i<count($event['recur_exception']);++$i) 1334 $event_count = count($event['recur_exception']); 1335 for($i=0;$i<$event_count;++$i) 1334 1336 { 1335 1337 $str .= ' <option value="'.$i.'">'.$GLOBALS['phpgw']->common->show_date($event['recur_exception'][$i]).'</option>'."\n"; … … 1457 1459 // Add participants 1458 1460 $participants = explode(";", $GLOBALS['phpgw']->session->appsession("participants") ); 1459 for($_f_part=0; $_f_part<count($participants); ++$_f_part) 1461 $participants_count = count($participants); 1462 for($_f_part=0; $_f_part<$participants_count; ++$_f_part) 1460 1463 { 1461 1464 $this->bo->add_attribute('participants','A',$participants[$_f_part]); … … 2809 2812 $accounts = $GLOBALS['phpgw']->acl->get_ids_for_location('run',1,'calendar'); 2810 2813 $users = Array(); 2811 for($i=0;$i<count($accounts);++$i) 2814 $accounts_count = count($accounts); 2815 for($i=0;$i<$accounts_count;++$i) 2812 2816 { 2813 2817 $user = $accounts[$i]; … … 2820 2824 if($group_members != False) 2821 2825 { 2822 for($j=0;$j<count($group_members);++$j) 2826 $group_members_count = count($group_members); 2827 for($j=0;$j<$group_members_count;++$j) 2823 2828 { 2824 2829 if(!isset($users[$group_members[$j]])) … … 2861 2866 ); 2862 2867 2863 for($i=0;$i<count($var);++$i) 2868 $var_count = count($var); 2869 for($i=0;$i<$var_count;++$i) 2864 2870 { 2865 2871 $this->output_template_array($p,'rows','list',$var[$i]); … … 3607 3613 3608 3614 $description = $this->bo->get_short_field($event,$is_private,'description'); 3609 for($i=0;$i<count($picture);++$i) 3615 $picture_count = count($picture); 3616 for($i=0;$i<$picture_count;++$i) 3610 3617 { 3611 3618 $var = Array( … … 3797 3804 3798 3805 $description = $this->bo->get_short_field($event,$is_private,'description'); 3799 for($i=0;$i<count($picture);++$i) 3806 $picture_count = count($picture); 3807 for($i=0;$i<$picture_count;++$i) 3800 3808 { 3801 3809 $var = Array( … … 3868 3876 3869 3877 $overlap = ''; 3870 for($i=0;$i<count($overlapping_events);++$i) 3878 $overlapping_events_count = count($overlapping_events); 3879 for($i=0;$i<$overlapping_events_count;++$i) 3871 3880 { 3872 3881 $overlapped_event = $this->bo->read_entry($overlapping_events[$i],True); … … 5734 5743 } 5735 5744 5736 for ($i=0; $i<count($control_data['part']); ++$i) 5745 $control_data_count = count($control_data['part']); 5746 for ($i=0; $i<$control_data_count; ++$i) 5737 5747 { 5738 5748 $id = $control_data['part'][$i]; … … 5745 5755 if ($control_data['action'] == lang('Delete selected contacts')) 5746 5756 { 5747 for ($i=0; $i<count($control_data['delete']); ++$i) 5757 $control_data_count = count($control_data['delete']); 5758 for ($i=0; $i<$control_data_count; ++$i) 5748 5759 { 5749 5760 $id = $control_data['delete'][$i]; … … 5970 5981 if($holidays) 5971 5982 { 5972 for($k=0;$k<count($holidays);++$k) 5983 $holidays_count = count($holidays); 5984 for($k=0;$k<$holidays_count;++$k) 5973 5985 { 5974 5986 $holiday_name[] = $holidays[$k]['name'];
Note: See TracChangeset
for help on using the changeset viewer.