diff options
Diffstat (limited to 'lib/program.php')
-rw-r--r-- | lib/program.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/program.php b/lib/program.php index 721abea..07e6077 100644 --- a/lib/program.php +++ b/lib/program.php @@ -3,7 +3,9 @@ function program() { $program = array(); - $schedule = file_get_contents($GLOBALS['CONFIG']['SCHEDULE']); + $opts = array('http' => array('timeout' => 2)); + $context = stream_context_create($opts); + $schedule = file_get_contents($GLOBALS['CONFIG']['SCHEDULE'], false, $context); // loading failed, try tmp-file if(!$schedule) |