item guids
This commit is contained in:
@@ -747,6 +747,8 @@ function item_store($arr,$force_parent = false) {
|
||||
}
|
||||
}
|
||||
|
||||
$arr['guid'] = get_guid();
|
||||
|
||||
call_hooks('post_remote',$arr);
|
||||
|
||||
dbesc_array($arr);
|
||||
|
||||
@@ -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)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user