Remove duplicate queries in $database->getInviteCredit
Merge remote-tracking branch 'upstream/master'
Merge remote-tracking branch 'upstream/master'
Small fix