From dce975e33b95e455c671207054a1d4c0237e075f Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Mon, 9 Feb 2009 08:48:50 -0500 Subject: allow events without arguments --- lib/event.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/event.php') diff --git a/lib/event.php b/lib/event.php index 10ef5ec0a..d815ae54b 100644 --- a/lib/event.php +++ b/lib/event.php @@ -98,7 +98,7 @@ class Event { * on results of handlers. */ - public static function handle($name, $args) { + public static function handle($name, $args=array()) { $result = null; if (array_key_exists($name, Event::$_handlers)) { foreach (Event::$_handlers[$name] as $handler) { -- cgit v1.2.3-54-g00ecf