From ac1369815c9265f3969f3519e1a9183de3784872 Mon Sep 17 00:00:00 2001 From: chicpro Date: Mon, 10 Feb 2014 14:55:51 +0900 Subject: [PATCH] =?UTF-8?q?=EC=84=A0=ED=83=9D=EC=98=B5=EC=85=98=203?= =?UTF-8?q?=EA=B0=9C=20=EC=9D=B4=EC=83=81=EC=9D=BC=20=EB=95=8C=20=EB=91=90?= =?UTF-8?q?=EB=B2=88=EC=A7=B8=20=EC=98=B5=EC=85=98=20=EC=A4=91=EB=B3=B5=20?= =?UTF-8?q?=EC=B6=9C=EB=A0=A5=EB=90=98=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 --- shop/itemoption.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/shop/itemoption.php b/shop/itemoption.php index b5ca01e03..dffb433dd 100644 --- a/shop/itemoption.php +++ b/shop/itemoption.php @@ -24,7 +24,17 @@ for($i=0; $row=sql_fetch_array($result); $i++) { if(!strlen($val[$key])) continue; - $opt[] = $val[$key]; + $continue = false; + foreach($opt as $v) { + if(strval($v) === strval($val[$key])) { + $continue = true; + break; + } + } + if($continue) + continue; + + $opt[] = strval($val[$key]); if($key + 1 < $sel_count) { $str .= PHP_EOL.'';