mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-10-03 18:34:43 +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,10 +131,12 @@ class NextcloudPlugin extends \RainLoop\Plugins\AbstractPlugin
|
|||
public function FilterAppData($bAdmin, &$aResult) : void
|
||||
{
|
||||
if (!$bAdmin && \is_array($aResult)) {
|
||||
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/';
|
||||
// $sWebDAV = \OCP\Util::linkToRemote('dav');
|
||||
|
|
Loading…
Add table
Reference in a new issue