diff options
Diffstat (limited to 'include/photos.php')
-rw-r--r-- | include/photos.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/photos.php b/include/photos.php index d14c12d84..a3018816c 100644 --- a/include/photos.php +++ b/include/photos.php @@ -588,6 +588,8 @@ function photos_album_rename($channel_id, $oldname, $newname) { ); } + + /** * @brief * @@ -713,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) ); |