- Timestamp:
- 12/14/12 14:30:35 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/prototype/plugins/icalcreator/iCalUtilityFunctions.class.php
r5341 r7655 441 441 $output = array(); 442 442 $val = null; 443 for( $ix=0; $ix < strlen( $duration ); $ix++) {443 for( $ix=0; $ix < strlen( $duration ); ++$ix ) { 444 444 switch( strtoupper( substr( $duration, $ix, 1 ))) { 445 445 case 'W': … … 839 839 $yeardays = $weekno = 0; 840 840 $yeardaycnt = array(); 841 for( $m = 1; $m <= 12; $m++) { // count up and update up-counters841 for( $m = 1; $m <= 12; ++$m ) { // count up and update up-counters 842 842 $daycnts[$m] = array(); 843 843 $weekdaycnt = array(); … … 845 845 $yeardaycnt[$dn] = $weekdaycnt[$dn] = 0; 846 846 $mcnt = date( 't', mktime( 0, 0, 0, $m, 1, $wdate['year'] )); 847 for( $d = 1; $d <= $mcnt; $d++) {847 for( $d = 1; $d <= $mcnt; ++$d ) { 848 848 $daycnts[$m][$d] = array(); 849 849 if( isset( $recur['BYYEARDAY'] )) { 850 $yeardays++;850 ++$yeardays; 851 851 $daycnts[$m][$d]['yearcnt_up'] = $yeardays; 852 852 } … … 1026 1026 else { 1027 1027 /* update result array if BYSETPOS is set */ 1028 $countcnt++;1028 ++$countcnt; 1029 1029 if( $startdatets <= $wdatets ) { // only output within period 1030 1030 $result[$wdatets] = TRUE; … … 1089 1089 // echo " recur ".implode('-',iCalUtilityFunctions::_date_time_string(date('Y-m-d H:i:s',$bysetposarr1[$ix]),6)); // test ### 1090 1090 } 1091 $countcnt++;1091 ++$countcnt; 1092 1092 } 1093 1093 if( isset( $recur['COUNT'] ) && ( $countcnt >= $recur['COUNT'] ))
Note: See TracChangeset
for help on using the changeset viewer.