summaryrefslogtreecommitdiffstats
path: root/3rdparty
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty')
-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
{