diff --git a/app/controllers/calendar/date.php b/app/controllers/calendar/date.php index 5b00e323cf59f1bbfbfe4992400dea456a5ad95a..72f3a405931cf766e17c2ef57eb6890828f3188e 100644 --- a/app/controllers/calendar/date.php +++ b/app/controllers/calendar/date.php @@ -840,7 +840,7 @@ class Calendar_DateController extends AuthenticatedController '`calendar_date_id` = :calendar_date_id AND `range_id` = :current_user_id', [ 'calendar_date_id' => $this->date->id, - 'current_user_id' => $GLOBALS['user']->id + 'current_user_id' => User::findCurrent()->id ] ); if ($result) {