From 9f41f18d435e6996c9ec9e834762fddb983542c0 Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Tue, 1 Nov 2022 21:53:39 +0100 Subject: [PATCH] Bugfix: undefined $sEmail --- plugins/nextcloud/index.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/nextcloud/index.php b/plugins/nextcloud/index.php index d162ea547..71fc30427 100644 --- a/plugins/nextcloud/index.php +++ b/plugins/nextcloud/index.php @@ -41,7 +41,7 @@ class NextcloudPlugin extends \RainLoop\Plugins\AbstractPlugin public static function IsIntegrated() { - return !empty($_ENV['SNAPPYMAIL_NEXTCLOUD']) && \class_exists('OC') && isset(\OC::$server); + return \class_exists('OC') && isset(\OC::$server); } public static function IsLoggedIn() @@ -170,6 +170,7 @@ class NextcloudPlugin extends \RainLoop\Plugins\AbstractPlugin ]; if (empty($aResult['Auth'])) { $config = \OC::$server->getConfig(); + $sEmail = ''; // Only store the user's password in the current session if they have // enabled auto-login using Nextcloud username or email address. if ($config->getAppValue('snappymail', 'snappymail-autologin', false)) {