diff options
Diffstat (limited to 'lib/Controller/PageController.php')
-rw-r--r-- | lib/Controller/PageController.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Controller/PageController.php b/lib/Controller/PageController.php index c789ecc7..d54d519d 100644 --- a/lib/Controller/PageController.php +++ b/lib/Controller/PageController.php @@ -101,9 +101,11 @@ class PageController extends Controller { // automated background syncs for social avatars (default: no) $bgSyncEnabledByUser = $this->config->getUserValue($userId, Application::APP_ID, 'enableSocialSync', 'no'); + $circleVersion = $this->appManager->getAppVersion('circles'); $isContactsInteractionEnabled = $this->appManager->isEnabledForUser('contactsinteraction') === true; $isCirclesEnabled = $this->appManager->isEnabledForUser('circles') === true; - $isCircleVersionCompatible = $this->compareVersion->isCompatible($this->appManager->getAppVersion('circles'), 22); + // if circles is not installed, we use 0.0.0 + $isCircleVersionCompatible = $this->compareVersion->isCompatible($circleVersion ? $circleVersion : '0.0.0', 22); $this->initialStateService->provideInitialState(Application::APP_ID, 'locales', $locales); $this->initialStateService->provideInitialState(Application::APP_ID, 'defaultProfile', $defaultProfile); |