From f860008e5602256062c2240e4ba240087ae64773 Mon Sep 17 00:00:00 2001 From: liugang Date: Mon, 25 Oct 2021 16:18:48 +0800 Subject: [PATCH] * Remove the outdated code. --- lib/base/front/front.class.php | 3 --- lib/front/front.class.php | 2 -- 2 files changed, 5 deletions(-) diff --git a/lib/base/front/front.class.php b/lib/base/front/front.class.php index 4779559811..a8cd5c52d1 100644 --- a/lib/base/front/front.class.php +++ b/lib/base/front/front.class.php @@ -172,7 +172,6 @@ class baseHTML $selectedItems = ",$selectedItems,"; foreach($options as $key => $value) { - $key = str_replace('item', '', $key); $selected = strpos($selectedItems, ",$key,") !== false ? " selected='selected'" : ''; $string .= "\n"; } @@ -209,7 +208,6 @@ class baseHTML $string .= "\n"; foreach($options as $key => $value) { - $key = str_replace('item', '', $key); $selected = strpos($selectedItems, ",$key,") !== false ? " selected='selected'" : ''; $string .= "\n"; } @@ -280,7 +278,6 @@ class baseHTML foreach($options as $key => $value) { - $key = str_replace('item', '', $key); if($isBlock) $string .= "