Guillermo Espinoza 8 éve
szülő
commit
5773ee22f1
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      Validator/Constraints/DeviceValidator.php

+ 1 - 1
Validator/Constraints/DeviceValidator.php

@@ -38,7 +38,7 @@ class DeviceValidator extends ConstraintValidator
     {
         $result = $this->webservice->makeGetRequest($this->deviceCheckUrl);
         $data = json_decode($result, true);
-        if ($data['result'] == false) {
+        if (isset($data['result']) && $data['result'] == false) {
             $this->context->buildViolation($constraint->message)
                     ->addViolation();
         }