forked from GNUsocial/gnu-social
		
	allow events without arguments
This commit is contained in:
		| @@ -98,7 +98,7 @@ class Event { | |||||||
|      *                 on results of handlers. |      *                 on results of handlers. | ||||||
|      */ |      */ | ||||||
|  |  | ||||||
|     public static function handle($name, $args) { |     public static function handle($name, $args=array()) { | ||||||
|         $result = null; |         $result = null; | ||||||
|         if (array_key_exists($name, Event::$_handlers)) { |         if (array_key_exists($name, Event::$_handlers)) { | ||||||
|             foreach (Event::$_handlers[$name] as $handler) { |             foreach (Event::$_handlers[$name] as $handler) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user