mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-27 09:49:22 +02:00
Use more strict ===
This commit is contained in:
parent
89a24442c4
commit
219f128cb7
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user