diff --git a/adm/shop_admin/itemlist.php b/adm/shop_admin/itemlist.php index 4c9ee9fb2..9be2853d1 100644 --- a/adm/shop_admin/itemlist.php +++ b/adm/shop_admin/itemlist.php @@ -17,7 +17,7 @@ $result = sql_query($sql); for ($i=0; $row=sql_fetch_array($result); $i++) { $len = strlen($row['ca_id']) / 2 - 1; - $nbsp = ""; + $nbsp = ''; for ($i=0; $i<$len; $i++) { $nbsp .= '   '; } @@ -102,8 +102,8 @@ if ($sfl || $stx) // 검색렬일 때만 처음 버튼을 보여줌 $result1 = sql_query($sql1); for ($i=0; $row1=sql_fetch_array($result1); $i++) { $len = strlen($row1['ca_id']) / 2 - 1; - $nbsp = ""; - for ($i=0; $i<$len; $i++) $nbsp .= "   "; + $nbsp = ''; + for ($i=0; $i<$len; $i++) $nbsp .= '   '; echo ''.PHP_EOL; } ?> @@ -120,7 +120,7 @@ if ($sfl || $stx) // 검색렬일 때만 처음 버튼을 보여줌 - + diff --git a/lib/common.lib.php b/lib/common.lib.php index 1ac098608..00ae54b39 100644 --- a/lib/common.lib.php +++ b/lib/common.lib.php @@ -1677,7 +1677,7 @@ function abs_ip2long($ip='') function get_selected($field, $value) { - return ($field==$value) ? ' selected="selected"' : ''; + return ($field==$value) ? ' selected' : ''; } diff --git a/lib/shop.lib.php b/lib/shop.lib.php index 17208d845..c6305fdde 100644 --- a/lib/shop.lib.php +++ b/lib/shop.lib.php @@ -673,7 +673,7 @@ function conv_selected_option($options, $value) if(!$options) return ''; - $options = preg_replace('/(value=[\'\"]?'.$value.'[\'\"]?)/i', '\\1 selected="selected"', $options); + $options = preg_replace('/(value=[\'\"]?'.$value.'[\'\"]?)/i', '\\1 selected', $options); return $options; }