fix for undefined index

remotes/origin/stable6
Florin Peter 2013-05-28 09:36:14 +07:00
parent 6f9e425939
commit 0041711fe3
1 changed files with 1 additions and 1 deletions

@ -131,7 +131,7 @@ class Util {
$this->userId = $this->publicShareKeyId;
// only handle for files_sharing app
if ($GLOBALS['app'] === 'files_sharing') {
if (isset($GLOBALS['app']) && $GLOBALS['app'] === 'files_sharing') {
$this->userDir = '/' . $GLOBALS['fileOwner'];
$this->fileFolderName = 'files';
$this->userFilesDir = '/' . $GLOBALS['fileOwner'] . '/'