]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/event.php
Selector to allow styles when a user is logged in.
[quix0rs-gnu-social.git] / lib / event.php
index f5406d07a6554acf7d7614d89140c927e1d7ffd4..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) {
@@ -108,6 +108,6 @@ class Event {
                 }
             }
         }
-        return ($result === false);
+        return ($result !== false);
     }
 }