diff options
author | Florin Peter <github@florin-peter.de> | 2013-05-28 09:36:14 +0200 |
---|---|---|
committer | Florin Peter <github@florin-peter.de> | 2013-05-28 09:36:14 +0200 |
commit | 0041711fe3475d4b6c6955b2de0291e1966b2d23 (patch) | |
tree | c24cccc3572bbede8b7a6a87efb95e82464ce784 | |
parent | 6f9e425939ff9edb3d0d4c606c38fe9c0416b845 (diff) | |
download | nextcloud-server-0041711fe3475d4b6c6955b2de0291e1966b2d23.tar.gz nextcloud-server-0041711fe3475d4b6c6955b2de0291e1966b2d23.zip |
fix for undefined index
-rw-r--r-- | apps/files_encryption/lib/util.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_encryption/lib/util.php b/apps/files_encryption/lib/util.php index dba01c4d961..48485cf2e86 100644 --- a/apps/files_encryption/lib/util.php +++ b/apps/files_encryption/lib/util.php @@ -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'] . '/' |