PHP 7.4 implode compatibility fix

Signed-off-by: Beta Soft <betaxab@gmail.com>
This commit is contained in:
Beta Soft 2020-07-28 16:11:27 +08:00
parent 0486f4e6ac
commit f274cb0d4b
No known key found for this signature in database
GPG Key ID: 180A31AB98D5C156
3 changed files with 3 additions and 3 deletions

0
app/Utils/Helper.php Executable file → Normal file
View File

View File

@ -43,7 +43,7 @@ class QuantumultX
}
}
$uri = implode($config, ',');
$uri = implode(',', $config);
$uri .= "\r\n";
return $uri;
}
@ -61,7 +61,7 @@ class QuantumultX
"tag={$server->name}"
];
$config = array_filter($config);
$uri = implode($config, ',');
$uri = implode(',', $config);
$uri .= "\r\n";
return $uri;
}

View File

@ -39,7 +39,7 @@ class Surge
"tfo=true"
];
$config = array_filter($config);
$uri = implode($config, ',');
$uri = implode(',', $config);
$uri .= "\r\n";
return $uri;
}