From 784f63189625f2ee427e9a53b4a65b1759dd1464 Mon Sep 17 00:00:00 2001 From: thisgun Date: Wed, 17 Oct 2018 16:29:50 +0900 Subject: [PATCH] =?UTF-8?q?get=5Fselected=20get=5Fchecked=20=ED=95=A8?= =?UTF-8?q?=EC=88=98=20=EB=B9=84=EA=B5=90=EB=AC=B8=20=EC=BD=94=EB=93=9C=20?= =?UTF-8?q?=EB=8B=A4=EC=8B=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/common.lib.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/common.lib.php b/lib/common.lib.php index b9d16cc64..65f555a0d 100644 --- a/lib/common.lib.php +++ b/lib/common.lib.php @@ -2070,12 +2070,20 @@ function abs_ip2long($ip='') function get_selected($field, $value) { + if( is_int($value) ){ + return ((int) $field===$value) ? ' selected="selected"' : ''; + } + return ($field===$value) ? ' selected="selected"' : ''; } function get_checked($field, $value) { + if( is_int($value) ){ + return ((int) $field===$value) ? ' checked="checked"' : ''; + } + return ($field===$value) ? ' checked="checked"' : ''; }