From 479abd52317848923332a339383d8032cdb97aca Mon Sep 17 00:00:00 2001 From: snipe Date: Fri, 9 Feb 2024 20:53:33 +0000 Subject: [PATCH] =?UTF-8?q?Do=20not=20try=20to=20return=20a=20serial=20if?= =?UTF-8?q?=20the=20item=20doesn=E2=80=99t=20exist?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: snipe --- app/Http/Controllers/ReportsController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/ReportsController.php b/app/Http/Controllers/ReportsController.php index 5248cf4ad1..162469bcd2 100644 --- a/app/Http/Controllers/ReportsController.php +++ b/app/Http/Controllers/ReportsController.php @@ -295,7 +295,7 @@ class ReportsController extends Controller $actionlog->present()->actionType(), e($actionlog->itemType()), ($actionlog->itemType() == 'user') ? $actionlog->filename : $item_name, - ($actionlog->item->serial) ? $actionlog->item->serial : null, + ($actionlog->item) ? $actionlog->item->serial : null, ($actionlog->item->model) ? htmlspecialchars($actionlog->item->model->name, ENT_NOQUOTES) : null, ($actionlog->item->model) ? $actionlog->item->model->model_number : null, $target_name,