fix get PHP_PATH from env

This commit is contained in:
xiaomlove
2023-02-11 19:22:21 +08:00
parent 439cbd6d87
commit cd3f8576c5
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ if ($isTypeTmpInvite && (empty($_POST['duration']) || $_POST['duration'] < 1)) {
stderr("Error","Invalid duration");
}
$whereStr = implode(' OR ', $conditions);
$phpPath = nexus_env('PHP_PATH', 'php');
$phpPath = nexus_env('PHP_PATH') ?: 'php';
$webRoot = rtrim(ROOT_PATH, '/');
while (true) {
$msgValues = $idArr = [];