aboutsummaryrefslogtreecommitdiffstats
path: root/mod/invite.php
diff options
context:
space:
mode:
authorjeroenpraat <jeroenpraat@xs4all.nl>2015-11-20 00:39:47 +0100
committerjeroenpraat <jeroenpraat@xs4all.nl>2015-11-20 00:39:47 +0100
commita890ee6864f5a3b727ac558b64f9a208345d9fb7 (patch)
tree3d53304fb89b5116bda0e7b065f0248bc77a41ee /mod/invite.php
parentba52af786e0e2f27c36e82df9086dfb8d33d9062 (diff)
downloadvolse-hubzilla-a890ee6864f5a3b727ac558b64f9a208345d9fb7.tar.gz
volse-hubzilla-a890ee6864f5a3b727ac558b64f9a208345d9fb7.tar.bz2
volse-hubzilla-a890ee6864f5a3b727ac558b64f9a208345d9fb7.zip
Some bits
Diffstat (limited to 'mod/invite.php')
-rw-r--r--mod/invite.php4
1 files changed, 2 insertions, 2 deletions
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
+}