X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fcommandinterpreter.php;fp=lib%2Fcommandinterpreter.php;h=c546cf0fca94ca34f500a804ad34868981f93f83;hb=b22acbb42e2cefa4c3d94f192b735519b1182f07;hp=d2b744e93d79c41554dc2788277efcc7f3f6883c;hpb=8ffecae9c63d8d5a533f3d1610d36f93ba21c2fc;p=quix0rs-gnu-social.git diff --git a/lib/commandinterpreter.php b/lib/commandinterpreter.php index d2b744e93d..c546cf0fca 100644 --- a/lib/commandinterpreter.php +++ b/lib/commandinterpreter.php @@ -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));