Skip to content

Commit

Permalink
edit
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Jan 11, 2017
1 parent c5497f3 commit 7ce2660
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -2,3 +2,4 @@
.env
vendor/
composer.phar
.user.ini
2 changes: 1 addition & 1 deletion app/Controllers/UserController.php
Expand Up @@ -98,7 +98,7 @@ public function invite($request, $response, $args)
public function doInvite($request, $response, $args)
{
$n = $request->getParam('num');
if ($n < 1) {
if ($n < 1 || $n > $this->user->invite_num) {
$res['ret'] = 0;
return $response->getBody()->write(json_encode($res));
}
Expand Down

0 comments on commit 7ce2660

Please sign in to comment.