소스 검색

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

Maximiliano Schvindt 7 년 전
부모
커밋
f41487cb33
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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'],
             );