Browse Source

Prevent an error in PHP 8.1warning

FusionPBX 2 năm trước cách đây
mục cha
commit
0aa33b45ce
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      core/users/user_edit.php

+ 1 - 0
core/users/user_edit.php

@@ -666,6 +666,7 @@
 
 //set the defaults
 	if (empty($user_enabled)) { $user_enabled = "true"; }
+	if (empty($user_totp_secret)) { $user_totp_secret = ""; }
 
 //create token
 	$object = new token;