From 43b76df6012b620cf48b67b79e48ba033ae15cb7 Mon Sep 17 00:00:00 2001 From: Kavalar Date: Fri, 9 Feb 2024 15:10:45 +0300 Subject: [PATCH] fix reports --- common/models/Reports.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/models/Reports.php b/common/models/Reports.php index 49612ae..089ac95 100755 --- a/common/models/Reports.php +++ b/common/models/Reports.php @@ -138,7 +138,7 @@ class Reports extends \yii\db\ActiveRecord public static function getFio($data) { $user_card = UserCard::findOne(['id' => $data->user_card_id]); - return $user_card->fio; + return $user_card->fio ?? null; } /**