From 892e1edc890aad4dc3108619560c52aec3c915c5 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sun, 3 Sep 2006 05:12:42 +0000 Subject: [PATCH] some sanatizing ;-) --- calendar/inc/class.holidaycalc.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/calendar/inc/class.holidaycalc.inc.php b/calendar/inc/class.holidaycalc.inc.php index ead1d01590..0583aafa27 100755 --- a/calendar/inc/class.holidaycalc.inc.php +++ b/calendar/inc/class.holidaycalc.inc.php @@ -13,7 +13,8 @@ /* $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'; } @@ -31,4 +32,3 @@ { include(EGW_INCLUDE_ROOT.'/calendar/inc/class.holidaycalc_US.inc.php'); } -?>