File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -182,7 +182,7 @@ public function twigL($label, $lang = false)
182182 $ savedLabel = $ savedLabels ->getPath ("$ label/ $ lang " );
183183
184184 // If we've got a live one, send it packing!
185- if ($ savedLabel !== null ) {
185+ if (! empty ( $ savedLabel) ) {
186186 return new Markup ($ savedLabel , 'UTF-8 ' );
187187 }
188188
@@ -194,7 +194,7 @@ public function twigL($label, $lang = false)
194194 // Use the fallback if configured & exists
195195 $ defaultLang = mb_strtolower ($ config ->getDefault ());
196196 $ savedDefault = $ savedLabels ->getPath ("$ label/ $ defaultLang " );
197- if ($ config ->isUseFallback () && $ savedDefault !== null ) {
197+ if ($ config ->isUseFallback () && ! empty ( $ savedDefault) ) {
198198 $ label = $ savedDefault ;
199199 }
200200
You can’t perform that action at this time.
0 commit comments