소스 검색

Do not always output support

Jordi Boggiano 5 년 전
부모
커밋
d0969481f5
1개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. 4 2
      src/Packagist/WebBundle/Entity/Version.php

+ 4 - 2
src/Packagist/WebBundle/Entity/Version.php

@@ -317,8 +317,10 @@ class Version
     {
     {
         $array = $this->toArray($versionData);
         $array = $this->toArray($versionData);
 
 
-        $array['support'] = $this->getSupport();
-        ksort($array['support']);
+        if ($this->getSupport()) {
+            $array['support'] = $this->getSupport();
+            ksort($array['support']);
+        }
 
 
         return $array;
         return $array;
     }
     }