Minor - added quotes around comparison for value returned by api_get_setting()

skala
Yannick Warnier 12 years ago
parent 6172637e40
commit 8d7eeead1f
  1. 2
      main/inc/global.inc.php

@ -78,7 +78,7 @@ api_check_php_version($includePath.'/');
// 3. Checking the login_is_email portal setting in order to accept 100 chars maximum
$default_username_length = 40;
if (api_get_setting('login_is_email') == true) {
if (api_get_setting('login_is_email') == 'true') {
$default_username_length = 100;
}
define('USERNAME_MAX_LENGTH', $default_username_length);

Loading…
Cancel
Save