Skip to content

Commit 01b4d31

Browse files
author
A. Täffner
committed
probable compatibility issue fixed
1 parent e678c93 commit 01b4d31

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

install/lib/update.lib.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,9 @@ function check_service_config_state($servicename, $detected_value) {
429429

430430
if ($current_svc_config[$servicename] == 1) $current_state = 1;
431431
else $current_state = 0;
432+
433+
if ($detected_value) $detected_value = 1;
434+
else $detected_value = 0;
432435

433436
if ($detected_value != $current_state) {
434437
$answer = $inst->simple_query('Service \''.$servicename.'\' '.($detected_value ? 'has been' : 'has not been').' detected ('.($current_state ? 'strongly recommended, currently enabled' : 'currently disabled').') do you want to '.($detected_value ? 'enable and configure' : 'disable').' it? ', array('yes', 'no'), ($current_state ? 'yes' : 'no'), 'svc_detect_change_'.$servicename);

0 commit comments

Comments
 (0)