From 4d8837f848332af5a423c5e35f0068c86cddb058 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 15 Mar 2006 06:42:26 +0000 Subject: [PATCH] fix for bug [ 1448778 ] failed to open stream: No such file or directory --> quitend error message if using localhost and no holidays are availible for a country --- calendar/inc/class.boholiday.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calendar/inc/class.boholiday.inc.php b/calendar/inc/class.boholiday.inc.php index 34362ccef6..af658170d5 100755 --- a/calendar/inc/class.boholiday.inc.php +++ b/calendar/inc/class.boholiday.inc.php @@ -288,7 +288,7 @@ // echo 'Loading from: '.$load_from.'/holidays.'.strtoupper($locale).'.csv'."
\n"; if($GLOBALS['egw_info']['server']['holidays_url_path'] == 'localhost') { - $lines = file(EGW_SERVER_ROOT.'/calendar/egroupware.org/holidays.'.strtoupper($locale).'.csv'); + $lines = @file(EGW_SERVER_ROOT.'/calendar/egroupware.org/holidays.'.strtoupper($locale).'.csv'); } else $lines = $network->gethttpsocketfile($load_from.'/holidays.'.strtoupper($locale).'.csv');