vsprintf error on sql query
This commit is contained in:
parent
8aee932525
commit
ebd3b965fc
@ -713,6 +713,7 @@ function profile_photo_set_profile_perms($uid, $profileid = 0) {
|
||||
if($profileid) {
|
||||
$r = q("SELECT photo, profile_guid, id, is_default, uid
|
||||
FROM profile WHERE uid = %d and ( profile.id = %d OR profile.profile_guid = '%s') LIMIT 1",
|
||||
intval($uid),
|
||||
intval($profileid),
|
||||
dbesc($profileid)
|
||||
);
|
||||
|
Reference in New Issue
Block a user