Browse files

Unused local variable

  • Loading branch information...
1 parent 5479ef4 commit 488872dc7f0107f5edbd47666366f210e5b6386c @gimler gimler committed Jan 1, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 Command/PromoteUserCommand.php
View
2 Command/PromoteUserCommand.php
@@ -47,7 +47,7 @@ protected function executeRoleCommand(UserManipulator $manipulator, OutputInterf
$manipulator->promote($username);
$output->writeln(sprintf('User "%s" has been promoted as a super administrator.', $username));
} else {
- if ($added = $manipulator->addRole($username, $role)) {
+ if ($manipulator->addRole($username, $role)) {
$output->writeln(sprintf('Role "%s" has been added to user "%s".', $role, $username));
} else {
$output->writeln(sprintf('User "%s" did already have "%s" role.', $username, $role));

0 comments on commit 488872d

Please sign in to comment.