Skip to content

Commit 0af92af

Browse files
committed
Remove broken test condition
1 parent 28f01a1 commit 0af92af

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

web/edit/server/index.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@
6363
"tpl" => strtoupper(str_replace('.', '_', $php_version)),
6464
"version" => str_ireplace('php-', '', $php_version),
6565
"usedby" => [],
66+
"installed" => false,
67+
"protected" => false,
6668
];
6769

6870
if(in_array($phpinfo->tpl, $backend_templates)) {
@@ -173,7 +175,7 @@
173175

174176
// Install/remove php versions
175177
if (empty($_SESSION['error_msg'])) {
176-
if(!empty($v_php_versions) && count($_POST['v_php_versions'] != count($v_php_versions))) {
178+
if(!empty($v_php_versions)) {
177179
$post_php = $_POST['v_php_versions'];
178180

179181
array_map(function($php_version) use ($post_php) {

0 commit comments

Comments
 (0)