Issues

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

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.

Fixed with r10900

Updating for the 1.6.0 release.