| @@ -279,7 +279,8 @@ discard block | ||
| 279 | 279 | $userids = array(); // To prevent from spamming a single user by adding it multiple times | 
| 280 | 280 | |
| 281 | 281 |      foreach ($users as $username) { | 
| 282 | -        if (is_numeric($username)) {     // user ID is given | |
| 282 | +        if (is_numeric($username)) { | |
| 283 | +// user ID is given | |
| 283 | 284 | $userid = (int)$username; | 
| 284 | 285 | $user = BoincUser::lookup_id($userid); | 
| 285 | 286 |              if ($user == null) { | 
| @@ -289,7 +290,8 @@ discard block | ||
| 289 | 290 | $users = BoincUser::lookup_name($username); | 
| 290 | 291 |              if (count($users) == 0) { | 
| 291 | 292 |                  pm_form($replyto, $userid, tra("Could not find user with username %1", $username)); | 
| 292 | -            } elseif (count($users) > 1) { // Non-unique username | |
| 293 | +            } elseif (count($users) > 1) { | |
| 294 | +// Non-unique username | |
| 293 | 295 |                  pm_form($replyto, $userid, tra("%1 is not a unique username; you will have to use user ID", $username)); | 
| 294 | 296 | } | 
| 295 | 297 | $user = $users[0]; |