Skip to content

Commit

Permalink
Avoid Undefined index: userEmail #763
Browse files Browse the repository at this point in the history
  • Loading branch information
dartcafe committed Jan 21, 2020
1 parent 487acff commit 84e4f8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Controller/ShareController.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ public function write($pollId, $share) {
$newShare->setType($share['type']);
$newShare->setPollId($share['pollId']);
$newShare->setUserId($share['userId']);
$newShare->setUserEmail($share['userEmail']);
$newShare->setUserEmail(isset($share['userEmail']) ? $share['userEmail'] : '' ,);
$newShare->setToken(\OC::$server->getSecureRandom()->generate(
16,
ISecureRandom::CHAR_DIGITS .
Expand Down

0 comments on commit 84e4f8b

Please sign in to comment.