summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntoine Beaupré2009-09-14 11:40:25 (GMT)
committeranarcat2009-09-14 11:40:25 (GMT)
commitd2078bd9450b590c82dfd09f3aa8fa216b304394 (patch)
treeac52eb7c4c77cbec930f814522bc4b33a0b2c9e6
parentcc5f2f1e1fd35e699f3b3a79ac66a6de49379eed (diff)
silence some warnings6.x-0.4-alpha1
-rw-r--r--ssl/provision_ssl.drush.inc2
-rw-r--r--web_server/provision_apache.drush.inc2
2 files changed, 2 insertions, 2 deletions
diff --git a/ssl/provision_ssl.drush.inc b/ssl/provision_ssl.drush.inc
index 23f3ba2..161b59a 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 1f02af6..61a105b 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'])) {