From fa4d472f8a13db1d2e06c532789fe7c4564fb040 Mon Sep 17 00:00:00 2001 From: Daniel Hunsaker Date: Sun, 2 Feb 2014 07:57:06 -0700 Subject: Fixed a bug with quarterly report scheduling monthofyear was being unset for all intervals which weren't yearly. A check was added for quarterly intervals to avoid unsetting monthofyear in that case and getting quarterly reports once every month. The behavior should now be as expected. Bumped version number accordingly. Signed-off-by: Daniel Hunsaker --- config/mailreport/status_mail_report_edit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config/mailreport/status_mail_report_edit.php') diff --git a/config/mailreport/status_mail_report_edit.php b/config/mailreport/status_mail_report_edit.php index 0baa9aa6..6cbb8a67 100644 --- a/config/mailreport/status_mail_report_edit.php +++ b/config/mailreport/status_mail_report_edit.php @@ -178,7 +178,7 @@ if ($_POST) { if ($pconfig['frequency'] == "yearly") { $pconfig['monthofyear'] = isset($pconfig['monthofyear']) ? $pconfig['monthofyear'] : 1; $friendly = "Yearly, on day {$pconfig['dayofmonth']} of {$monthofyear[$pconfig['monthofyear']]} at {$friendlytime}"; - } else { + } elseif ($pconfig['frequency'] != "quarterly") { if (isset($pconfig['monthofyear'])) unset($pconfig['monthofyear']); } -- cgit v1.2.3