Had to switch these 2. Sorry.

This commit is contained in:
jeroenpraat
2015-11-20 00:50:54 +01:00
parent e537d53389
commit c7652fc29c
2 changed files with 3 additions and 1 deletions

View File

@@ -51,7 +51,7 @@ function invite_post(&$a) {
}
if($invonly && ($x || is_site_admin())) {
$code = autoname(8) . rand(1000,9999);
$code = autoname(8) . srand(1000,9999);
$nmessage = str_replace('$invite_code',$code,$message);
$r = q("INSERT INTO `register` (`hash`,`created`) VALUES ('%s', '%s') ",