ZF-9937: Problems with arrays
Description
After updating from 1.10.4 to 1.10.5 i got a php warning:
Line 812 is:
But $locale may not be an array for array_key_exists(). So I guess, just a ! is missing: ```
After updating from 1.10.4 to 1.10.5 i got a php warning:
Line 812 is:
But $locale may not be an array for array_key_exists(). So I guess, just a ! is missing: ```
Comments
Posted by Dolf Schimmel (Freeaqingme) (freak) on 2010-06-02T17:05:22.000+0000
How can one reproduce the issue?
Posted by Sandra Schneider (haruka) on 2010-06-02T17:45:41.000+0000
I got this error while calling: ```
$someArray is an array with two elements, 'cause the translation in my po-file has two placeholders.
Posted by Thomas Weidner (thomas) on 2010-06-03T00:35:06.000+0000
Is $this->translate an object of Zend_Translate? Or is $this a view helper?
Because Zend_Translate does not support view operations and the second parameter for Zend_Translate is the language and not a placeholder.
Posted by Sandra Schneider (haruka) on 2010-06-03T02:28:46.000+0000
$this is an instance of Zend_View. So $this->translate() calls the view helper.
Posted by Thomas Weidner (thomas) on 2010-06-03T04:05:50.000+0000
Not reproduceable for me, wether in trunk nor in branch. Probably already fixed in past.