From a890ee6864f5a3b727ac558b64f9a208345d9fb7 Mon Sep 17 00:00:00 2001 From: jeroenpraat Date: Fri, 20 Nov 2015 00:39:47 +0100 Subject: Some bits --- mod/invite.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mod') diff --git a/mod/invite.php b/mod/invite.php index 46fa7b413..1af5fc1f8 100644 --- a/mod/invite.php +++ b/mod/invite.php @@ -51,7 +51,7 @@ function invite_post(&$a) { } if($invonly && ($x || is_site_admin())) { - $code = autoname(8) . srand(1000,9999); + $code = autoname(8) . rand(1000,9999); $nmessage = str_replace('$invite_code',$code,$message); $r = q("INSERT INTO `register` (`hash`,`created`) VALUES ('%s', '%s') ", @@ -143,4 +143,4 @@ function invite_content(&$a) { )); return $o; -} \ No newline at end of file +} -- cgit v1.2.3 From c7652fc29ce2d69a6d71d6d8a928709cbf6ebbb0 Mon Sep 17 00:00:00 2001 From: jeroenpraat Date: Fri, 20 Nov 2015 00:50:54 +0100 Subject: Had to switch these 2. Sorry. --- mod/invite.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mod') diff --git a/mod/invite.php b/mod/invite.php index 1af5fc1f8..bda808142 100644 --- a/mod/invite.php +++ b/mod/invite.php @@ -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') ", -- cgit v1.2.3