diff --git a/phpgwapi/inc/class.country.inc.php b/phpgwapi/inc/class.country.inc.php index f40da863f1..86ba8a1109 100755 --- a/phpgwapi/inc/class.country.inc.php +++ b/phpgwapi/inc/class.country.inc.php @@ -356,11 +356,7 @@ class country */ function form_select($code,$name='country') { - if (!is_object($GLOBALS['egw']->html)) - { - $GLOBALS['egw']->html =& CreateObject('phpgwapi.html'); - } - return $GLOBALS['egw']->html->select($name,strtoupper($code),$this->country_array); + return html::select($name,strtoupper($code),$this->country_array); } /**