From 1b80c8938ad76492601f9452b153f159f42e493c Mon Sep 17 00:00:00 2001 From: Godfrey M Date: Thu, 15 Feb 2024 13:04:00 -0800 Subject: [PATCH] removed unnecessary if statement --- app/Http/Controllers/LabelsController.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/Http/Controllers/LabelsController.php b/app/Http/Controllers/LabelsController.php index 6537da077d..80ace3084a 100755 --- a/app/Http/Controllers/LabelsController.php +++ b/app/Http/Controllers/LabelsController.php @@ -43,7 +43,6 @@ class LabelsController extends Controller $labelName = str_replace('/', '\\', $labelName); $template = Label::find($labelName); - if($setting->label2_enable && ($setting->label2_template != 'DefaultLabel')) { $exampleAsset = new Asset(); $exampleAsset->id = 999999; @@ -79,7 +78,6 @@ class LabelsController extends Controller $exampleAsset->model->category = new Category(); $exampleAsset->model->category->id = 999999; $exampleAsset->model->category->name = trans('admin/labels/table.example_category'); - } foreach($field_selections as $key => $value) { $exampleAsset->{$value} = "{{$key}}";