Skip to content

Commit 78a0688

Browse files
author
florian030
committed
fixed "named php-default "
1 parent 72be81b commit 78a0688

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

interface/web/sites/ajax_get_json.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,11 @@
107107
} else {
108108
$php_version = $php_record['name'].':'.$php_record['php_fastcgi_binary'].':'.$php_record['php_fastcgi_ini_dir'];
109109
}
110-
$json .= '"'.$php_version.'": "'.$php_record['name'].'",';
110+
if($php_record['name'] != $web_config['php_default_name']) {
111+
$json .= '"'.$php_version.'": "'.$php_record['name'].'",';
112+
} else {
113+
$json .= '"": "'.$php_record['name'].'",';
114+
}
111115
}
112116
}
113117
unset($php_records);

0 commit comments

Comments
 (0)