diff --git a/preferences/inc/class.preferences_hooks.inc.php b/preferences/inc/class.preferences_hooks.inc.php index 5a3a207d47..58e0afb2fb 100644 --- a/preferences/inc/class.preferences_hooks.inc.php +++ b/preferences/inc/class.preferences_hooks.inc.php @@ -96,7 +96,7 @@ class preferences_hooks if (empty($lang)) $lang = 'en'; } list(,$country) = explode('-',$lang); - if (empty($country)) $country = Locale::getRegion(Locale::getDefault()); + if (empty($country) && class_exists('Locale')) $country = Locale::getRegion(Locale::getDefault()); if (empty($country)) $country = 'de'; // check for old rte_font_size pref including px and split it in size and unit