mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-25 12:35:55 +02:00
[ticket/10345] Remove doubled check for valid plural rule
PHPBB3-10345
This commit is contained in:
@ -1925,10 +1925,6 @@ class user extends session
|
||||
|
||||
// Default to English system
|
||||
$plural_rule = ($force_rule !== false) ? $force_rule : ((isset($this->lang['PLURAL_RULE'])) ? $this->lang['PLURAL_RULE'] : 1);
|
||||
if ($plural_rule > 15 || $plural_rule < 0)
|
||||
{
|
||||
trigger_error('INVALID_PLURAL_RULE');
|
||||
}
|
||||
|
||||
return phpbb_get_plural_form($plural_rule, $number);
|
||||
}
|
||||
|
Reference in New Issue
Block a user