Explorar o código

Merge branch 'master' of ssh://infra.flowdat.com:222/VendorSoftwareFlowdat3/DeviceBundle

Maximiliano Schvindt %!s(int64=8) %!d(string=hai) anos
pai
achega
f41487cb33
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Twig/DeviceLogExtension.php

+ 1 - 1
Twig/DeviceLogExtension.php

@@ -63,7 +63,7 @@ class DeviceLogExtension extends \Twig_Extension
         $device = $this->webservice->get($this->deviceGetUrl, $filters);
         
         $log = '';
-        if (count($device)) {
+        if (count($device) && isset($device[0])) {
             $filters = array(
                 'device' => $device[0]['id'],
             );