aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorredmatrix <mike@macgirvin.com>2016-08-27 05:06:12 -0700
committerredmatrix <mike@macgirvin.com>2016-08-27 05:07:07 -0700
commitebd3b965fc08640e460b0b983b6c8812cfd3c89c (patch)
tree16b5cf6007e00205f21df160ac0650b681f14651
parent8aee932525d0bc341713fe7052e2a5ab318a69c0 (diff)
downloadvolse-hubzilla-ebd3b965fc08640e460b0b983b6c8812cfd3c89c.tar.gz
volse-hubzilla-ebd3b965fc08640e460b0b983b6c8812cfd3c89c.tar.bz2
volse-hubzilla-ebd3b965fc08640e460b0b983b6c8812cfd3c89c.zip
vsprintf error on sql query
-rw-r--r--include/photos.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/photos.php b/include/photos.php
index d14c12d84..bd25fe8b7 100644
--- a/include/photos.php
+++ b/include/photos.php
@@ -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)
);