summaryrefslogtreecommitdiff
path: root/installer
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-06-20 15:08:10 +0200
committerAleksander Machniak <alec@alec.pl>2013-06-20 15:08:10 +0200
commit39b905b7a8abafe57f5429952db390a97ffa047f (patch)
tree6dbfb024d6441f873e4736c3d3cdc7d430c027eb /installer
parent976ba376a94db6ac0891bc02437cea9f9cc08093 (diff)
Canonize boolean ini_get() results (#1489189)
Diffstat (limited to 'installer')
-rw-r--r--installer/check.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/installer/check.php b/installer/check.php
index bea8c42e0..122437b9b 100644
--- a/installer/check.php
+++ b/installer/check.php
@@ -203,7 +203,7 @@ foreach ($ini_checks as $var => $val) {
echo '<br />';
continue;
}
- if ($status == $val) {
+ if (filter_var($status, FILTER_VALIDATE_BOOLEAN) == $val) {
$RCI->pass($var);
} else {
$RCI->fail($var, "is '$status', should be '$val'");
@@ -227,7 +227,7 @@ foreach ($optional_checks as $var => $val) {
echo '<br />';
continue;
}
- if ($status == $val) {
+ if (filter_var($status, FILTER_VALIDATE_BOOLEAN) == $val) {
$RCI->pass($var);
} else {
$RCI->optfail($var, "is '$status', could be '$val'");