diff --git a/ssl/provision_ssl.drush.inc b/ssl/provision_ssl.drush.inc index 23f3ba2223ef93d0500187519f850a74cd690584..161b59a267fd971d27891968bc3a23831f381643 100644 --- a/ssl/provision_ssl.drush.inc +++ b/ssl/provision_ssl.drush.inc @@ -20,7 +20,7 @@ * SSLEngine On */ function provision_ssl_provision_apache_vhost_config($url, $options) { - if ($options['ssl']) { + if (!empty($options['ssl'])) { if ($options['ssl_redirect'] && provision_path('exists', drush_get_option('vhost_path') . '/' . $url . '_80', FALSE, NULL, t("The redirection port is not available, no redirection installed"))) { $newoptions = $options; $newoptions['site_port'] = 80; diff --git a/web_server/provision_apache.drush.inc b/web_server/provision_apache.drush.inc index 1f02af60ac08c7dec1011e749884cda7c46c4212..61a105b34d77629a8f8d90a855845e7056f69f1e 100644 --- a/web_server/provision_apache.drush.inc +++ b/web_server/provision_apache.drush.inc @@ -134,7 +134,7 @@ function _provision_apache_create_vhost_config($url, $template = NULL) { if (is_null($template)) { $template = _provision_apache_default_template(); } - if ($options['redirection']) { + if (!empty($options['redirection'])) { $template .= _provision_apache_redirect_template(); } if (!is_array($options['aliases'])) {