aboutsummaryrefslogtreecommitdiffstats
path: root/include/text.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-08-07 17:29:26 -0700
committerFriendika <info@friendika.com>2011-08-07 17:29:26 -0700
commit8812b7f4caa99d01ae0e082c0b29a2ee24aed67d (patch)
tree0a5988272c513e7bcc789e7864f145f26a3bbfb0 /include/text.php
parent1eec10329a4764f132b159e7b1bbf37added6c8a (diff)
downloadvolse-hubzilla-8812b7f4caa99d01ae0e082c0b29a2ee24aed67d.tar.gz
volse-hubzilla-8812b7f4caa99d01ae0e082c0b29a2ee24aed67d.tar.bz2
volse-hubzilla-8812b7f4caa99d01ae0e082c0b29a2ee24aed67d.zip
item guids
Diffstat (limited to 'include/text.php')
-rw-r--r--include/text.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/text.php b/include/text.php
index 297383602..adc94b458 100644
--- a/include/text.php
+++ b/include/text.php
@@ -881,7 +881,7 @@ function return_bytes ($size_str) {
function generate_user_guid() {
$found = true;
do {
- $guid = substr(random_string(),0,16);
+ $guid = random_string(16);
$x = q("SELECT `uid` FROM `user` WHERE `guid` = '%s' LIMIT 1",
dbesc($guid)
);