Skip to content

Commit

Permalink
Simplify.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed May 25, 2016
1 parent 8d0c2c2 commit d379b67
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions kronolith/lib/Kronolith.php
Expand Up @@ -592,11 +592,7 @@ public static function addCoverDates(&$results, $event, $eventStart,
? $addEvent->toJson(array('all_day' => $allDay))
: $addEvent;
}
$loopDate = new Horde_Date(array(
'month' => $eventStart->month,
'mday' => ++$i,
'year' => $eventStart->year)
);
$loopDate->mday++;
}

This comment has been minimized.

Copy link
@prigaux

prigaux May 26, 2016

Contributor

NB : further simplification: get rid of $i alltogether

}

Expand Down

0 comments on commit d379b67

Please sign in to comment.