From 0f5ff805ecb70aeaba32f5cd693e4aecde807cca Mon Sep 17 00:00:00 2001 From: nathangray Date: Wed, 14 Aug 2019 14:32:35 -0600 Subject: [PATCH] Calendar - fix incorrectly moved preference read --- calendar/inc/class.calendar_boupdate.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/calendar/inc/class.calendar_boupdate.inc.php b/calendar/inc/class.calendar_boupdate.inc.php index 10e3dd717d..e0ae8057e8 100644 --- a/calendar/inc/class.calendar_boupdate.inc.php +++ b/calendar/inc/class.calendar_boupdate.inc.php @@ -2941,8 +2941,6 @@ class calendar_boupdate extends calendar_bo $status_reset = false; $sameday = (date('Ymd', $old_event['start']) == date('Ymd', $event['start'])); - $preferences = new Api\Preferences($uid); - $part_prefs = $preferences->read_repository(); foreach((array)$event['participants'] as $uid => $status) { $q = $r = null; @@ -2955,6 +2953,8 @@ class calendar_boupdate extends calendar_bo // Just user accounts if (is_int($uid)) { + $preferences = new Api\Preferences($uid); + $part_prefs = $preferences->read_repository(); switch ($part_prefs['calendar']['reset_stati']) { case 'no':