diff options
author | Georg Ehrke <dev@georgswebsite.de> | 2012-01-05 20:19:07 +0100 |
---|---|---|
committer | Georg Ehrke <dev@georgswebsite.de> | 2012-01-05 20:19:07 +0100 |
commit | be9ca44d07a129671bd5ce53d64ef22da93d5ae9 (patch) | |
tree | 9845b90bba7254000d941dc5c5409fe0f5572a06 /3rdparty | |
parent | a01a3d412c9dff2f3221b0b60307026a027ae5e8 (diff) | |
download | nextcloud-server-be9ca44d07a129671bd5ce53d64ef22da93d5ae9.tar.gz nextcloud-server-be9ca44d07a129671bd5ce53d64ef22da93d5ae9.zip |
fix bug in 3rdparty lib
Diffstat (limited to '3rdparty')
-rwxr-xr-x | 3rdparty/when/When.php | 4 |
1 files 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 { |