Skip to content

Commit

Permalink
Bugfix: Undefined variable $aTokenData #1567
Browse files Browse the repository at this point in the history
  • Loading branch information
the-djmaze committed May 26, 2024
1 parent 429a0eb commit df1e592
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -342,8 +342,8 @@ private static function GetSignMeToken(): ?array
$aResult = \SnappyMail\Crypt::DecryptUrlSafe($sSignMeToken, 'signme');
if (isset($aResult['e'], $aResult['u']) && \SnappyMail\UUID::isValid($aResult['u'])) {
if (!isset($aResult['c'])) {
$aTokenData['c'] = \array_key_last($aTokenData);
$aTokenData['d'] = \end($aTokenData);
$aResult['c'] = \array_key_last($aResult);
$aResult['d'] = \end($aResult);
}
return $aResult;
}
Expand Down

0 comments on commit df1e592

Please sign in to comment.