Merge remote-tracking branch 'upstream/master'
[quix0rs-gnu-social.git] / lib / commandinterpreter.php
index d2b744e93d79c41554dc2788277efcc7f3f6883c..c546cf0fca94ca34f500a804ad34868981f93f83 100644 (file)
@@ -36,6 +36,7 @@ class CommandInterpreter
         // StatusNet
 
         $cmd = strtolower($cmd);
+        $result = false;
 
         if (Event::handle('StartInterpretCommand', array($cmd, $arg, $user, &$result))) {
             switch($cmd) {
@@ -297,8 +298,6 @@ class CommandInterpreter
                     $result = new TrackingCommand($user);
                 }
                 break;
-            default:
-                $result = false;
             }
 
             Event::handle('EndInterpretCommand', array($cmd, $arg, $user, &$result));