Commit d2078bd9 authored by anarcat's avatar anarcat Committed by anarcat
Browse files

silence some warnings

parent cc5f2f1e
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
* SSLEngine On * SSLEngine On
*/ */
function provision_ssl_provision_apache_vhost_config($url, $options) { 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"))) { 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 = $options;
$newoptions['site_port'] = 80; $newoptions['site_port'] = 80;
......
...@@ -134,7 +134,7 @@ function _provision_apache_create_vhost_config($url, $template = NULL) { ...@@ -134,7 +134,7 @@ function _provision_apache_create_vhost_config($url, $template = NULL) {
if (is_null($template)) { if (is_null($template)) {
$template = _provision_apache_default_template(); $template = _provision_apache_default_template();
} }
if ($options['redirection']) { if (!empty($options['redirection'])) {
$template .= _provision_apache_redirect_template(); $template .= _provision_apache_redirect_template();
} }
if (!is_array($options['aliases'])) { if (!is_array($options['aliases'])) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment