Skip to content

Commit

Permalink
Fixes zendframework#301 - Undefined variable in Zend_Application_Reso…
Browse files Browse the repository at this point in the history
…urce_Translate
  • Loading branch information
froschdesign committed Mar 28, 2014
1 parent d891d9f commit c0027c3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Application/Resource/Translate.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,7 @@ public function getTranslate()

if (isset($options['log'])) {
if (is_array($options['log'])) {
$log = Zend_Log::factory($options['log']);
}
if ($log instanceof Zend_Log) {
$options['log'] = $log;
$options['log'] = Zend_Log::factory($options['log']);
}
}

Expand Down

0 comments on commit c0027c3

Please sign in to comment.