summaryrefslogtreecommitdiff
path: root/forum/utils/events.php
diff options
context:
space:
mode:
authordeva <deva>2008-10-11 19:18:55 +0000
committerdeva <deva>2008-10-11 19:18:55 +0000
commitb3bfcb9e6f512b2074dc69bf1af148ec4f4973d4 (patch)
treefb495e6814712748fa97771788e665b9cd89db37 /forum/utils/events.php
parent770a98fa4989a29622215312697c517aaf3cdd59 (diff)
Made events class ignore when calendar.xml doesn't exist.
Diffstat (limited to 'forum/utils/events.php')
-rw-r--r--forum/utils/events.php2
1 files changed, 1 insertions, 1 deletions
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();
}
}