1
0
Fork 0
mirror of synced 2024-09-29 08:51:28 +13:00

Fix registration bug

This commit is contained in:
Matej Bačo 2023-05-12 08:45:28 +02:00
parent eb764871db
commit cddc40449a
2 changed files with 8 additions and 4 deletions

@ -1 +1 @@
Subproject commit 863a512cd8c8c3e48e924ae4c4bb17f668309422
Subproject commit a54ce32b481e59c5b3304e8907767ed6791a959c

View file

@ -77,10 +77,14 @@ class Detector
*/
public function getDevice(): array
{
$deviceName = $this->getDetector()->getDeviceName();
$deviceBrand = $this->getDetector()->getBrandName();
$deviceModel = $this->getDetector()->getModel();
return [
'deviceName' => $this->getDetector()->getDeviceName(),
'deviceBrand' => $this->getDetector()->getBrandName(),
'deviceModel' => $this->getDetector()->getModel(),
'deviceName' => empty($deviceName) ? null : $deviceName,
'deviceBrand' => empty($deviceBrand) ? null : $deviceBrand,
'deviceModel' => empty($deviceModel) ? null : $deviceModel,
];
}