| @@ -22,7 +22,7 @@ | ||
| 22 | 22 | |
| 23 | 23 |          if (is_array($this->items[$key])) { | 
| 24 | 24 | |
| 25 | - if(!$locale) $locale = app()->getLocale(); | |
| 25 | + if (!$locale) $locale = app()->getLocale(); | |
| 26 | 26 | |
| 27 | 27 |              if ($this->items[$key] == null || !isset($this->items[$key][$locale])) { | 
| 28 | 28 | return $default; | 
| @@ -22,7 +22,9 @@ | ||
| 22 | 22 | |
| 23 | 23 |          if (is_array($this->items[$key])) { | 
| 24 | 24 | |
| 25 | - if(!$locale) $locale = app()->getLocale(); | |
| 25 | +            if(!$locale) { | |
| 26 | + $locale = app()->getLocale(); | |
| 27 | + } | |
| 26 | 28 | |
| 27 | 29 |              if ($this->items[$key] == null || !isset($this->items[$key][$locale])) { | 
| 28 | 30 | return $default; |