summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Zend/zend_ini.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_ini.c b/Zend/zend_ini.c
index c80ff30..0126fe0 100644
--- a/Zend/zend_ini.c
+++ b/Zend/zend_ini.c
@@ -443,7 +443,7 @@ ZEND_INI_DISP(zend_ini_boolean_displayer_cb) /* {{{ */
value = 1;
} else if (tmp_value_len == 2 && strcasecmp(tmp_value, "on") == 0) {
value = 1;
- } else if (value) {
+ } else if (tmp_value) {
value = atoi(tmp_value);
} else {
value = 0;