From 64b4078f102452adb270697f10dd2600394a60a9 Mon Sep 17 00:00:00 2001 From: jitendrapurohit Date: Mon, 14 Mar 2016 12:09:58 +0530 Subject: [PATCH] CRM-18103 - Warning in Pledge.php caused by null initial_reminder_day --- CRM/Pledge/BAO/Pledge.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CRM/Pledge/BAO/Pledge.php b/CRM/Pledge/BAO/Pledge.php index b6835b2385..7b5137e7ba 100644 --- a/CRM/Pledge/BAO/Pledge.php +++ b/CRM/Pledge/BAO/Pledge.php @@ -1013,11 +1013,13 @@ SELECT pledge.contact_id as contact_id, if (empty($details['reminder_date'])) { $nextReminderDate = new DateTime($details['scheduled_date']); + $details['initial_reminder_day'] = empty($details['initial_reminder_day']) ? 0 : $details['initial_reminder_day']; $nextReminderDate->modify("-" . $details['initial_reminder_day'] . "day"); $nextReminderDate = $nextReminderDate->format("Ymd"); } else { $nextReminderDate = new DateTime($details['reminder_date']); + $details['additional_reminder_day'] = empty($details['additional_reminder_day']) ? 0 : $details['additional_reminder_day']; $nextReminderDate->modify("+" . $details['additional_reminder_day'] . "day"); $nextReminderDate = $nextReminderDate->format("Ymd"); } -- 2.25.1