From bba57a254bf420fe785e90f53d15baf1bfd128d8 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Mon, 5 Mar 2018 11:13:54 +0100 Subject: [PATCH] Fix broken sharing caused by commit 89a8e6f44836516ed1233993854c999b5e5de1d7 --- api/src/Vfs/Sharing.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/src/Vfs/Sharing.php b/api/src/Vfs/Sharing.php index df84f3b799..196d789d97 100644 --- a/api/src/Vfs/Sharing.php +++ b/api/src/Vfs/Sharing.php @@ -169,8 +169,8 @@ class Sharing if (!isset($_SERVER['PHP_AUTH_PW'])) $_SERVER['PHP_AUTH_PW'] = ''; unset($GLOBALS['egw_info']['flags']['autocreate_session_callback']); - if (isset($GLOBALS['egw']->sharing) && $GLOBALS['egw']->session->verify() && - $GLOBALS['egw']->sharing->share['share_token'] === $token) + if (isset($GLOBALS['egw']->session) && $GLOBALS['egw']->session->verify() + && isset($GLOBALS['egw']->sharing) && $GLOBALS['egw']->sharing->share['share_token'] === $token) { return $GLOBALS['egw']->session->sessionid; }