]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
allow events without arguments
authorEvan Prodromou <evan@controlyourself.ca>
Mon, 9 Feb 2009 13:48:50 +0000 (08:48 -0500)
committerEvan Prodromou <evan@controlyourself.ca>
Mon, 9 Feb 2009 13:48:50 +0000 (08:48 -0500)
lib/event.php

index 10ef5ec0a9a1b74c4ca361bba0a07011c4e04ba7..d815ae54bac4a137a2f5b534cc06e8cccba066b3 100644 (file)
@@ -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) {