diff --git a/src/Kdyby/Translation/Translator.php b/src/Kdyby/Translation/Translator.php index a97c977c..05670806 100644 --- a/src/Kdyby/Translation/Translator.php +++ b/src/Kdyby/Translation/Translator.php @@ -151,7 +151,7 @@ public function translate($message, $count = NULL, array $parameters = array(), } $parameters = $tmp; - if ($count !== NULL) { + if ($count !== NULL && is_scalar($count)) { return $this->transChoice($message, $count, $parameters + array('%count%' => $count), $domain, $locale); }