Sfoglia il codice sorgente

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

Maximiliano Schvindt 7 anni fa
parent
commit
f41487cb33
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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'],
             );