From be9ca44d07a129671bd5ce53d64ef22da93d5ae9 Mon Sep 17 00:00:00 2001 From: Georg Ehrke Date: Thu, 5 Jan 2012 20:19:07 +0100 Subject: [PATCH] fix bug in 3rdparty lib --- 3rdparty/when/When.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/3rdparty/when/When.php b/3rdparty/when/When.php index 5f97f0eb9bf..f8bb9db0f67 100755 --- a/3rdparty/when/When.php +++ b/3rdparty/when/When.php @@ -586,7 +586,7 @@ class When } } } - elseif($this->gobyday || $interval == "month") + elseif($this->gobyday && $interval == "month") { $_mdays = range(1, date('t',mktime(0,0,0,$month,1,$year))); foreach($_mdays as $_mday) @@ -621,7 +621,7 @@ class When if($interval == "month") { - $this->try_date->modify('last day of ' . $this->interval . ' ' . $interval); + $this->try_date->modify('+1 month'); } else { -- 2.39.5