From: Jan Lehnardt Date: Thu, 29 Aug 2002 10:24:02 +0000 (+0000) Subject: - reenable "no value" output. thanks to sebastian for pointing that out. X-Git-Tag: RELEASE_0_91~182 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d6497fc96e0d5bfe8ecde252adb74e33dc430eaf;p=php - reenable "no value" output. thanks to sebastian for pointing that out. --- diff --git a/main/php_ini.c b/main/php_ini.c index 5f468608ae..aa4675698e 100644 --- a/main/php_ini.c +++ b/main/php_ini.c @@ -62,16 +62,26 @@ static void php_ini_displayer_cb(zend_ini_entry *ini_entry, int type) display_string_length = ini_entry->orig_value_length; esc_html=1; } else { - display_string = (PG(html_errors))?"no value":"no value"; - display_string_length = sizeof((PG(html_errors))?"no value":"no value")-1; + if (PG(html_errors)) { + display_string = "no value"; + display_string_length = sizeof("no value")-1; + } else { + display_string = "no value"; + display_string_length = sizeof("no value")-1; + } } } else if (ini_entry->value && ini_entry->value[0]) { display_string = ini_entry->value; display_string_length = ini_entry->value_length; esc_html=1; } else { - display_string = (PG(html_errors))?"no value":"no value"; - display_string_length = sizeof((PG(html_errors))?"no value":"no value")-1; + if (PG(html_errors)) { + display_string = "no value"; + display_string_length = sizeof("no value")-1; + } else { + display_string = "no value"; + display_string_length = sizeof("no value")-1; + } } if(esc_html) { php_html_puts(display_string, display_string_length TSRMLS_CC);