From 914ccb6f03e6d7e7de62b9084dd7770f89092ee5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= Date: Fri, 7 Dec 2007 10:46:49 +0000 Subject: Neither of the optimnization checkboxes were selected on the performance page, due to data type mismatch. Noticed while testing #113607. --- modules/system/system.admin.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules') diff --git a/modules/system/system.admin.inc b/modules/system/system.admin.inc index e48c583a7..2693cebd7 100644 --- a/modules/system/system.admin.inc +++ b/modules/system/system.admin.inc @@ -1235,7 +1235,7 @@ function system_performance_settings() { $form['bandwidth_optimizations']['preprocess_css'] = array( '#type' => 'radios', '#title' => t('Optimize CSS files'), - '#default_value' => variable_get('preprocess_css', 0) && $is_writable, + '#default_value' => intval(variable_get('preprocess_css', 0) && $is_writable), '#disabled' => !$is_writable, '#options' => array(t('Disabled'), t('Enabled')), '#description' => t('This option can interfere with theme development and should only be enabled in a production environment.'), @@ -1243,7 +1243,7 @@ function system_performance_settings() { $form['bandwidth_optimizations']['preprocess_js'] = array( '#type' => 'radios', '#title' => t('Optimize JavaScript files'), - '#default_value' => variable_get('preprocess_js', 0) && $is_writable, + '#default_value' => intval(variable_get('preprocess_js', 0) && $is_writable), '#disabled' => !$is_writable, '#options' => array(t('Disabled'), t('Enabled')), '#description' => t('This option can interfere with module development and should only be enabled in a production environment.'), -- cgit v1.2.3