From a2b78885d0b58e679182ef7e5db7e8520bb6e155 Mon Sep 17 00:00:00 2001 From: chicpro Date: Tue, 9 Apr 2013 16:29:27 +0900 Subject: [PATCH] =?UTF-8?q?get=5Flist=5Fskin=5Foptions=20=ED=95=A8?= =?UTF-8?q?=EC=88=98=EC=97=90=EC=84=9C=20selected=20=EC=A0=81=EC=9A=A9?= =?UTF-8?q?=EB=90=98=EC=A7=80=20=EC=95=8A=EB=8A=94=20=EC=98=A4=EB=A5=98=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/shop.lib.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/shop.lib.php b/lib/shop.lib.php index 6b625f649..be841ffdd 100644 --- a/lib/shop.lib.php +++ b/lib/shop.lib.php @@ -570,13 +570,13 @@ function get_list_skin_options($pattern, $dirname='./', $sval='') closedir($handle); sort($arr); - foreach($arr as $key=>$value) { - if($key == $sval) + foreach($arr as $value) { + if($value == $sval) $selected = ' selected="selected"'; else $selected = ''; - $str .= ''.PHP_EOL; + $str .= ''.PHP_EOL; } return $str;