ZF-3937: ( ! ) Notice: Undefined variable: temp in Zend/Translate/Adapter.php on line 300
Description
$temp[0] was used but it wasn't defined ( ! ) Notice: Undefined variable: temp in /Zend/Translate/Adapter.php on line 300
This occurs due to the change from empty() to isset() in http://framework.zend.com/code/browse/…
The cause is that _addTranslationData() adds the translation locale as an empty array() so isset evals to true.
From _addTranslationData()
$locale = (string) $locale;
if (isset($this->_translate[$locale]) === false) {
$this->_translate[$locale] = array();
}
Comments
Posted by Thomas Weidner (thomas) on 2008-08-12T23:56:33.000+0000
Your patch adds the problem that adding empty resource files is no longer possible. This is a huge problem when working with the search options. The problem will be solved differently.
Posted by Thomas Weidner (thomas) on 2008-08-13T00:48:29.000+0000
Fixed with r10900
Posted by Wil Sinclair (wil) on 2008-09-02T10:39:01.000+0000
Updating for the 1.6.0 release.