We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e02dda commit 58e0015Copy full SHA for 58e0015
web/edit/server/index.php
@@ -47,6 +47,9 @@
47
];
48
sort($v_php_versions);
49
50
+if(empty($backend_templates))
51
+ $v_php_versions=[];
52
+
53
$v_php_versions = array_map(function($php_version) use ($backend_templates, $v_php_versions) {
54
// Mark installed php versions
55
@@ -65,7 +68,8 @@
65
68
66
69
if(array_search($phpinfo->name, array_reverse($v_php_versions, true)) == array_key_last($v_php_versions)) {
67
70
// Prevent default php version to be removed
- $phpinfo->protected = true;
71
+ if($phpinfo->installed)
72
+ $phpinfo->protected = true;
73
}
74
75
return $phpinfo;
0 commit comments