Skip to content

Commit

Permalink
get_selected get_checked 함수 비교문 코드 다시 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
thisgun committed Oct 17, 2018
1 parent 2541664 commit 784f631
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/common.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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"' : '';
}

Expand Down

0 comments on commit 784f631

Please sign in to comment.