summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Ehrke <dev@georgswebsite.de>2012-01-05 20:19:07 +0100
committerGeorg Ehrke <dev@georgswebsite.de>2012-01-05 20:19:07 +0100
commitbe9ca44d07a129671bd5ce53d64ef22da93d5ae9 (patch)
tree9845b90bba7254000d941dc5c5409fe0f5572a06
parenta01a3d412c9dff2f3221b0b60307026a027ae5e8 (diff)
downloadnextcloud-server-be9ca44d07a129671bd5ce53d64ef22da93d5ae9.tar.gz
nextcloud-server-be9ca44d07a129671bd5ce53d64ef22da93d5ae9.zip
fix bug in 3rdparty lib
-rwxr-xr-x3rdparty/when/When.php4
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
{