Skip to content

Commit c96df8f

Browse files
committed
PHP 7.4: Deprecated array offset access with curly braces
1 parent 1a27b4a commit c96df8f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Views/tickets/partials/filter_blocks.blade.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525

2626
<div class="title category">{{ trans('panichd::lang.filter-category') }}</div>
2727
@if (count($filters['category'])==1)
28-
<?php $cat_color = $filters['category']{0}->color;?>
29-
<span class="btn-category" style="color: {{ $cat_color }}">{{$filters['category']{0}->name}}</span>
28+
<?php $cat_color = $filters['category']->first()->color;?>
29+
<span class="btn-category" style="color: {{ $cat_color }}">{{$filters['category']->first()->name}}</span>
3030
@else
3131
<?php $text_cat = "";
3232
$category_name = "All";
@@ -84,7 +84,7 @@
8484
@else
8585
<?php $agent_button_size='';?>
8686
@if(count($filters['agent'])==1)
87-
<button class="btn btn-light btn-sm {{ $agent_button_size }} agent-current">{{$filters['agent']{0}->name}}</button>
87+
<button class="btn btn-light btn-sm {{ $agent_button_size }} agent-current">{{$filters['agent']->first()->name}}</button>
8888
@else
8989
@if (session('panichd_filter_agent')!="")
9090
<a href="{{ action('\PanicHD\PanicHD\Controllers\TicketsController@index') }}/filter/agent/remove" class="btn btn-light btn-sm agent-link {{ $agent_button_size }}">{{ trans('panichd::lang.filter-agent-all') }}</a>

0 commit comments

Comments
 (0)