From c4bb0e2bc21241e2279ee7ab23553dfa905cc591 Mon Sep 17 00:00:00 2001 From: Sebijk Date: Sun, 22 Jan 2023 13:45:47 +0100 Subject: [PATCH] make _dateFor static --- src/serverlib/calendar.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/serverlib/calendar.class.php b/src/serverlib/calendar.class.php index 2e64aa6..ec20fd6 100644 --- a/src/serverlib/calendar.class.php +++ b/src/serverlib/calendar.class.php @@ -133,7 +133,7 @@ class BMCalendar * * @return array */ - public function _dateFor($row, $time, $start, $end) + public static function _dateFor($row, $time, $start, $end) { $row['enddate'] = min($end, ($row['enddate'] - $row['startdate']) + $time); $row['startdate'] = max($start, $time);