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; } /**