aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorredmatrix <mike@macgirvin.com>2016-08-27 05:06:12 -0700
committerredmatrix <mike@macgirvin.com>2016-08-27 05:06:12 -0700
commit40b2e24c6dd72c91bf14bf5f36c8f737756d594d (patch)
treeb2a79be7fd2aeec4b557d1da2a7d0779d03a6906 /include
parentaea2fa1629692cc29f1070a66fbde9fb9ae837a6 (diff)
downloadvolse-hubzilla-40b2e24c6dd72c91bf14bf5f36c8f737756d594d.tar.gz
volse-hubzilla-40b2e24c6dd72c91bf14bf5f36c8f737756d594d.tar.bz2
volse-hubzilla-40b2e24c6dd72c91bf14bf5f36c8f737756d594d.zip
vsprintf error on sql query
Diffstat (limited to 'include')
-rw-r--r--include/photos.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/photos.php b/include/photos.php
index 9d15d3692..a3018816c 100644
--- a/include/photos.php
+++ b/include/photos.php
@@ -715,6 +715,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)
);