summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-02-09 08:48:50 -0500
committerEvan Prodromou <evan@controlyourself.ca>2009-02-09 08:48:50 -0500
commitdce975e33b95e455c671207054a1d4c0237e075f (patch)
tree0e6fedcb2188945f23d9c344fb70799efee16fc7 /lib
parent175f1e73950ab80c799944af8f69391113906394 (diff)
allow events without arguments
Diffstat (limited to 'lib')
-rw-r--r--lib/event.php2
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) {