mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-08 00:47:04 +03:00
Bugfix: undefined $sEmail
This commit is contained in:
parent
d416ab3642
commit
9f41f18d43
1 changed files with 2 additions and 1 deletions
|
|
@ -41,7 +41,7 @@ class NextcloudPlugin extends \RainLoop\Plugins\AbstractPlugin
|
||||||
|
|
||||||
public static function IsIntegrated()
|
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()
|
public static function IsLoggedIn()
|
||||||
|
|
@ -170,6 +170,7 @@ class NextcloudPlugin extends \RainLoop\Plugins\AbstractPlugin
|
||||||
];
|
];
|
||||||
if (empty($aResult['Auth'])) {
|
if (empty($aResult['Auth'])) {
|
||||||
$config = \OC::$server->getConfig();
|
$config = \OC::$server->getConfig();
|
||||||
|
$sEmail = '';
|
||||||
// Only store the user's password in the current session if they have
|
// Only store the user's password in the current session if they have
|
||||||
// enabled auto-login using Nextcloud username or email address.
|
// enabled auto-login using Nextcloud username or email address.
|
||||||
if ($config->getAppValue('snappymail', 'snappymail-autologin', false)) {
|
if ($config->getAppValue('snappymail', 'snappymail-autologin', false)) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue