mirror of
https://github.com/friendica/friendica
synced 2024-12-23 04:40:15 +00:00
i18n ru intval bug
Should fix: Got error 'PHP message: PHP Warning: A non-numeric value encountered in /home/alex/public_html/f.a80.fr/view/lang/ru/strings.php on line 5\n PHP 7.2.5 / Ubuntu 18.04 LTS
This commit is contained in:
parent
e107fae8e8
commit
2a9d364bb7
1 changed files with 1 additions and 0 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
if(! function_exists("string_plural_select_ru")) {
|
||||
function string_plural_select_ru($n){
|
||||
$n = intval($n);
|
||||
return ($n%10==1 && $n%100!=11 ? 0 : $n%10>=2 && $n%10<=4 && ($n%100<12 || $n%100>14) ? 1 : $n%10==0 || ($n%10>=5 && $n%10<=9) || ($n%100>=11 && $n%100<=14)? 2 : 3);;
|
||||
}}
|
||||
;
|
||||
|
|
Loading…
Reference in a new issue