From 5b81d5e906bf227f36d61584de2987d3c991f4ef Mon Sep 17 00:00:00 2001 From: Tanguy Pruvot Date: Fri, 29 Oct 2010 13:36:34 +0200 Subject: [PATCH] fix nextOccurrence() loop --- helpers/SG_iCal_Freq.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/helpers/SG_iCal_Freq.php b/helpers/SG_iCal_Freq.php index 561271b..9cfcac1 100755 --- a/helpers/SG_iCal_Freq.php +++ b/helpers/SG_iCal_Freq.php @@ -97,7 +97,8 @@ class SG_iCal_Freq { * @return int */ public function nextOccurrence( $offset ) { - return $this->findNext( $this->previousOccurrence( $offset) ); + //return $this->findNext( $this->previousOccurrence( $offset) ); + return $this->findNext($offset); } /**