Procházet zdrojové kódy

Fix old-php support

Jordi Boggiano před 9 roky
rodič
revize
e4eee227e0
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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);