From f980516545f4146c0e5017f940c7353670ece2d4 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Thu, 17 May 2018 08:12:55 +0200 Subject: [PATCH] Fix PoToPhp https://github.com/friendica/friendica/pull/5072#issuecomment-389754406 --- src/Core/Console/PoToPhp.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Core/Console/PoToPhp.php b/src/Core/Console/PoToPhp.php index 62ff24bd55..e97e1ff3d9 100644 --- a/src/Core/Console/PoToPhp.php +++ b/src/Core/Console/PoToPhp.php @@ -94,6 +94,7 @@ HELP; $fnname = 'string_plural_select_' . $lang; $out .= 'if(! function_exists("' . $fnname . '")) {' . "\n"; $out .= 'function ' . $fnname . '($n){' . "\n"; + $out .= ' $n = intval($n);' . "\n"; $out .= ' return ' . $cond . ';' . "\n"; $out .= '}}' . "\n"; }