Permalink
Browse files

Add check for openssl

  • Loading branch information...
1 parent 6822e29 commit 98b817f1d470f7b65b612acd1106965ce639ca39 @haraldpdl haraldpdl committed Sep 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 catalog/includes/classes/http_client.php
@@ -330,7 +330,7 @@ function addParameter($key, $value) {
}
function savePublicCertificate($server = null, $port = null) {
- if ((PHP_VERSION >= 5) && is_writable(DIR_FS_CACHE)) {
+ if ((PHP_VERSION >= 5) && extension_loaded('openssl') && is_writable(DIR_FS_CACHE)) {
if (!isset($server)) {
$server = $this->url['host'];
}

0 comments on commit 98b817f

Please sign in to comment.