Minor: Fix code checked by Flintci - refs BT#19044

pull/4001/head
Christian 4 years ago
parent a68f568cc8
commit ac77bfb38a
  1. 4
      public/main/auth/inscription.php

@ -148,7 +148,7 @@ $user_already_registered_show_terms = false;
if ('true' === api_get_setting('allow_terms_conditions')) {
$user_already_registered_show_terms = isset($_SESSION['term_and_condition']['user_id']);
// Ofaj change
if (api_is_anonymous() === true) {
if (true === api_is_anonymous()) {
$user_already_registered_show_terms = false;
}
}
@ -516,7 +516,7 @@ if (!empty($_GET['phone'])) {
$defaults['phone'] = Security::remove_XSS($_GET['phone']);
}
if (api_get_setting('openid_authentication') === 'true' && !empty($_GET['openid'])) {
if ('true' === api_get_setting('openid_authentication') && !empty($_GET['openid'])) {
$defaults['openid'] = Security::remove_XSS($_GET['openid']);
}

Loading…
Cancel
Save