some sanatizing ;-)

This commit is contained in:
Ralf Becker 2006-09-03 05:12:42 +00:00
parent 26fd3d2b97
commit 892e1edc89

View File

@ -13,7 +13,8 @@
/* $Id$ */ /* $Id$ */
if (empty($GLOBALS['egw_info']['user']['preferences']['common']['country'])) if (empty($GLOBALS['egw_info']['user']['preferences']['common']['country']) ||
strlen($GLOBALS['egw_info']['user']['preferences']['common']['country']) > 2)
{ {
$rule = 'US'; $rule = 'US';
} }
@ -31,4 +32,3 @@
{ {
include(EGW_INCLUDE_ROOT.'/calendar/inc/class.holidaycalc_US.inc.php'); include(EGW_INCLUDE_ROOT.'/calendar/inc/class.holidaycalc_US.inc.php');
} }
?>