diff --git a/lib/common.lib.php b/lib/common.lib.php index 747e8580b..0d3ad98d4 100644 --- a/lib/common.lib.php +++ b/lib/common.lib.php @@ -1909,6 +1909,12 @@ function get_selected($field, $value) } +function get_checked($field, $value) +{ + return ($field==$value) ? ' checked="checked"' : ''; +} + + function is_mobile() { return preg_match('/'.G5_MOBILE_AGENT.'/i', $_SERVER['HTTP_USER_AGENT']);