diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-01-09 12:40:32 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-01-09 12:40:32 +0300 |
commit | 2f154e5b3fedcd5c3ccde84f9b692725063acf00 (patch) | |
tree | adaf19c667770f60e3c8bee3d3af22c46169c285 /templates | |
parent | 5707fa611588ada62921fd19434cb92251feef0d (diff) |
Fix invalid index on public call pages
The `TemplateLayout` class only sets `user_uid` if the template is
rendered for a user, error and guest, but not for public pages. Hence
there should be a fallback for when the array index doesn't exist.
Issue discovered by Sentry.
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/index.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/index.php b/templates/index.php index 71082f06c..e3d4ecd4a 100644 --- a/templates/index.php +++ b/templates/index.php @@ -5,6 +5,6 @@ script('spreed', 'talk'); style('spreed', 'merged'); -if ($_['user_uid'] !== '') { +if (($_['user_uid'] ?? '') !== '') { \OC::$server->getEventDispatcher()->dispatch('\OCP\Collaboration\Resources::loadAdditionalScripts'); } |