Changeset 7655 for trunk/library/iCalcreator/iCalUtilityFunctions.class.php
- Timestamp:
- 12/14/12 14:30:35 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/library/iCalcreator/iCalUtilityFunctions.class.php
r5146 r7655 352 352 $output = array(); 353 353 $val = null; 354 for( $ix=0; $ix < strlen( $duration ); $ix++) {354 for( $ix=0; $ix < strlen( $duration ); ++$ix ) { 355 355 switch( strtoupper( substr( $duration, $ix, 1 ))) { 356 356 case 'W': … … 697 697 $yeardays = $weekno = 0; 698 698 $yeardaycnt = array(); 699 for( $m = 1; $m <= 12; $m++) { // count up and update up-counters699 for( $m = 1; $m <= 12; ++$m ) { // count up and update up-counters 700 700 $daycnts[$m] = array(); 701 701 $weekdaycnt = array(); … … 703 703 $yeardaycnt[$dn] = $weekdaycnt[$dn] = 0; 704 704 $mcnt = date( 't', mktime( 0, 0, 0, $m, 1, $wdate['year'] )); 705 for( $d = 1; $d <= $mcnt; $d++) {705 for( $d = 1; $d <= $mcnt; ++$d ) { 706 706 $daycnts[$m][$d] = array(); 707 707 if( isset( $recur['BYYEARDAY'] )) { 708 $yeardays++;708 ++$yeardays; 709 709 $daycnts[$m][$d]['yearcnt_up'] = $yeardays; 710 710 } … … 880 880 else { 881 881 /* update result array if BYSETPOS is set */ 882 $countcnt++;882 ++$countcnt; 883 883 if( $startdatets <= $wdatets ) { // only output within period 884 884 $result[$wdatets] = TRUE; … … 939 939 //echo "recur ".implode('-',iCalUtilityFunctions::_date_time_string(date('Y-m-d H:i:s',$bysetposarr1[$ix]),6))."<br />\n";//test 940 940 } 941 $countcnt++;941 ++$countcnt; 942 942 } 943 943 if( isset( $recur['COUNT'] ) && ( $countcnt >= $recur['COUNT'] ))
Note: See TracChangeset
for help on using the changeset viewer.