diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2009-02-09 08:48:50 -0500 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2009-02-09 08:48:50 -0500 |
commit | dce975e33b95e455c671207054a1d4c0237e075f (patch) | |
tree | 0e6fedcb2188945f23d9c344fb70799efee16fc7 /lib | |
parent | 175f1e73950ab80c799944af8f69391113906394 (diff) |
allow events without arguments
Diffstat (limited to 'lib')
-rw-r--r-- | lib/event.php | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |