Skip to content

Commit

Permalink
fixup! fix: do not show hidden calendars
Browse files Browse the repository at this point in the history
Signed-off-by: SebastianKrupinski <krupinskis05@gmail.com>
  • Loading branch information
SebastianKrupinski committed Feb 27, 2025
1 parent 71dc838 commit 4b0ba0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Dashboard/CalendarWidget.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public function getItems(string $userId, ?string $since = null, int $limit = 7):
];
$widgetItems = [];
foreach ($calendars as $calendar) {
if ($calendar instanceof ICalendarIsEnabled && $calendar->isEnabled() === false) {
if (interface_exists(ICalendarIsEnabled::class) && $calendar instanceof ICalendarIsEnabled && $calendar->isEnabled() === false) {

Check failure on line 128 in lib/Dashboard/CalendarWidget.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-master

lib/Dashboard/CalendarWidget.php:128:109: UndefinedInterfaceMethod: Method (OCP\Calendar\ICalendar&OCP\Calendar\ICalendarIsEnabled)::isEnabled does not exist (see https://psalm.dev/181)

Check failure on line 128 in lib/Dashboard/CalendarWidget.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-stable30

lib/Dashboard/CalendarWidget.php:128:109: UndefinedInterfaceMethod: Method (OCP\Calendar\ICalendar&OCP\Calendar\ICalendarIsEnabled)::isEnabled does not exist (see https://psalm.dev/181)
continue;
}
if ($calendar->isDeleted()) {
Expand Down

0 comments on commit 4b0ba0a

Please sign in to comment.