Passed
Pull Request — release_2_0 (#156)
by
unknown
06:21
created
web/accountstatus/accountstatus.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,8 +50,9 @@
 block discarded – undo
50 50
     // tokens to go on
51 51
     $certname = $_SERVER['SSL_CLIENT_SAN_Email'] ?? $_SERVER['SSL_CLIENT_SAN_Email_0'];
52 52
     $certObject = new \core\SilverbulletCertificate($certname);
53
-    if ($certObject->status == SilverbulletCertificate::CERTSTATUS_INVALID)
54
-        throw new Exception("We got an accepted certificate authentication, but can't find the certificate in the database!");
53
+    if ($certObject->status == SilverbulletCertificate::CERTSTATUS_INVALID) {
54
+            throw new Exception("We got an accepted certificate authentication, but can't find the certificate in the database!");
55
+    }
55 56
     }
56 57
     $profile = new \core\ProfileSilverbullet($certObject->profileId);
57 58
     $allTokens = $profile->userStatus($certObject->userId);
Please login to merge, or discard this patch.