mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-02-24 23:08:08 +08:00
Bugfix: array_search() expects parameter 2 to be array, null given
This commit is contained in:
parent
9d9ea1ec31
commit
4faa4db112
1 changed files with 5 additions and 3 deletions
|
@ -131,9 +131,11 @@ class NextcloudPlugin extends \RainLoop\Plugins\AbstractPlugin
|
|||
public function FilterAppData($bAdmin, &$aResult) : void
|
||||
{
|
||||
if (!$bAdmin && \is_array($aResult)) {
|
||||
$key = \array_search(\RainLoop\Enumerations\Capa::AUTOLOGOUT, $aResult['Capa']);
|
||||
if (false !== $key) {
|
||||
unset($aResult['Capa'][$key]);
|
||||
if (isset($aResult['Capa']) && \is_array($aResult['Capa'])) {
|
||||
$key = \array_search(\RainLoop\Enumerations\Capa::AUTOLOGOUT, $aResult['Capa']);
|
||||
if (false !== $key) {
|
||||
unset($aResult['Capa'][$key]);
|
||||
}
|
||||
}
|
||||
$sUID = \OC::$server->getUserSession()->getUser()->getUID();
|
||||
$sWebDAV = \OC::$server->getURLGenerator()->linkTo('', 'remote.php') . '/dav/';
|
||||
|
|
Loading…
Reference in a new issue