mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Fix registration bug
This commit is contained in:
+1
-1
Submodule app/console updated: 863a512cd8...a54ce32b48
@@ -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,
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user