Skip to content

Commit bf838bb

Browse files
committed
[FIX] Multilang TV.
1 parent 6e3d409 commit bf838bb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/sLang.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ public function getLangTemplateContentvalue(int $resourceId, string $langKey): a
251251
->get()
252252
->keyBy('name');
253253
}
254-
return $sTemplateContentvalue ? $sTemplateContentvalue->toArray() : [];
254+
return ($sTemplateContentvalue ?? false) ? $sTemplateContentvalue->toArray() : [];
255255
}
256256

257257
/**

views/partials/tvResource.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<label for="{{$row['name']}}" class="warning">
66
{{$row['caption']}}
77
@if(evo()->hasPermission('edit_template'))<br/><small class="text-muted">[*{{$row['name']}}*]</small>@endif
8-
@if(substr($tvPBV, 0, 8) == '@INHERIT')<br/><small class="comment inherited">({{$_lang['tmplvars_inherited']}})</small>@endif
8+
@if(substr(($tvPBV??''), 0, 8) == '@INHERIT')<br/><small class="comment inherited">({{$_lang['tmplvars_inherited']}})</small>@endif
99
</label>
1010
@if(!empty($row['description']))<i class="{{$_style["icon_question_circle"]}}" data-tooltip="{{$row['description']}}"></i>@endif
1111
</div>

0 commit comments

Comments
 (0)