From b3bfcb9e6f512b2074dc69bf1af148ec4f4973d4 Mon Sep 17 00:00:00 2001 From: deva Date: Sat, 11 Oct 2008 19:18:55 +0000 Subject: Made events class ignore when calendar.xml doesn't exist. --- forum/utils/events.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'forum') diff --git a/forum/utils/events.php b/forum/utils/events.php index 737c03c..9f521b8 100644 --- a/forum/utils/events.php +++ b/forum/utils/events.php @@ -134,7 +134,7 @@ class Events { public function Events($file) { $this->file = $file; - $this->read(); + if(file_exists($file)) $this->read(); } } -- cgit v1.2.3