Use more strict ===

This commit is contained in:
myaac 2019-07-12 22:12:19 +02:00
parent 89a24442c4
commit 219f128cb7

View File

@ -27,14 +27,14 @@ if(!$error) {
{ {
if(strpos($key, 'var_') !== false) if(strpos($key, 'var_') !== false)
{ {
if($key == 'var_server_path') if($key === 'var_server_path')
{ {
$value = str_replace("\\", "/", $value); $value = str_replace("\\", "/", $value);
if($value[strlen($value) - 1] != '/') if($value[strlen($value) - 1] !== '/')
$value .= '/'; $value .= '/';
} }
if($key == 'var_usage') { if($key === 'var_usage') {
$content .= '$config[\'anonymous_usage_statistics\'] = ' . ((int)$value == 1 ? 'true' : 'false') . ';'; $content .= '$config[\'anonymous_usage_statistics\'] = ' . ((int)$value == 1 ? 'true' : 'false') . ';';
$content .= PHP_EOL; $content .= PHP_EOL;
} }