Skip to content

Commit

Permalink
fix: check on null values as well (closes #2993)
Browse files Browse the repository at this point in the history
  • Loading branch information
modelrailroader authored Jun 10, 2024
1 parent c7c4e6b commit 779aa1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phpmyfaq/ucp.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
try {
$tfa = new TwoFactor($faqConfig);
$secret = $tfa->getSecret(CurrentUser::getFromSession($faqConfig));
if ('' === $secret) {
if ('' === $secret || is_null($secret) {
try {
$secret = $tfa->generateSecret();
} catch (TwoFactorAuthException $e) {
Expand Down

0 comments on commit 779aa1a

Please sign in to comment.