|
|
|
@ -34,7 +34,7 @@ function hasUserFreeCharSlot($user, $special = false) {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(!$special) {
|
|
|
|
|
if(!$special || $special_chars > 0) {
|
|
|
|
|
if($special_chars > 0)
|
|
|
|
|
$special_chars--;
|
|
|
|
|
|
|
|
|
@ -42,7 +42,8 @@ function hasUserFreeCharSlot($user, $special = false) {
|
|
|
|
|
$slots_avail = $user['char_max'];
|
|
|
|
|
return $chars_avail < $slots_avail;
|
|
|
|
|
} else {
|
|
|
|
|
return $special_chars < 2;
|
|
|
|
|
// special char but no special char yet available!
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|