瀏覽代碼

Fix old-php support

Jordi Boggiano 9 年之前
父節點
當前提交
e4eee227e0
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Composer/Factory.php

+ 1 - 1
src/Composer/Factory.php

@@ -535,7 +535,7 @@ class Factory
         }
         $remoteFilesystemOptions = array();
         if ($disableTls === false) {
-            if (isset($config) && !empty($config->get('cafile'))) {
+            if (isset($config) && $config->get('cafile')) {
                 $remoteFilesystemOptions = array('ssl' => array('cafile' => $config->get('cafile')));
             }
             $remoteFilesystemOptions = array_merge_recursive($remoteFilesystemOptions, $options);