X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fcommandinterpreter.php;h=c546cf0fca94ca34f500a804ad34868981f93f83;hb=945920f24dba53d8367160b221bc842db0768fc4;hp=d2b744e93d79c41554dc2788277efcc7f3f6883c;hpb=d24c4f349fb602e62bb69fe199a8040d00fc2cb9;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));