diff options
author | friendica <info@friendica.com> | 2014-11-22 12:26:33 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-11-22 12:26:33 -0800 |
commit | 86b6861aaeec44d4cc9c0e180915dae7fcaf6a97 (patch) | |
tree | a4a126cf558d7edad376135f57a4171589d70e18 /mod | |
parent | b16f93883077a3637d055a4c70a28ef0c994efec (diff) | |
parent | ab5bf1b7d69f4027f595eef56cf4d99207b8b46e (diff) | |
download | volse-hubzilla-86b6861aaeec44d4cc9c0e180915dae7fcaf6a97.tar.gz volse-hubzilla-86b6861aaeec44d4cc9c0e180915dae7fcaf6a97.tar.bz2 volse-hubzilla-86b6861aaeec44d4cc9c0e180915dae7fcaf6a97.zip |
Merge https://github.com/friendica/red into pending_merge
Diffstat (limited to 'mod')
-rw-r--r-- | mod/profile_photo.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/profile_photo.php b/mod/profile_photo.php index 24439d404..e9dad6f51 100644 --- a/mod/profile_photo.php +++ b/mod/profile_photo.php @@ -33,7 +33,7 @@ function profile_photo_set_profile_perms($profileid = '') { if (intval($profile['is_default']) != 1) { $r0 = q("SELECT channel_hash FROM channel WHERE channel_id = %d LIMIT 1", intval(local_user()) ); - $r1 = q("SELECT abook.abook_xchan FROM abook WHERE abook_profile = %d ", intval($profile['id'])); //Should not be needed in future. Catches old int-profile-ids. + $r1 = q("SELECT abook.abook_xchan FROM abook WHERE abook_profile = '%d' ", intval($profile['id'])); //Should not be needed in future. Catches old int-profile-ids. $r2 = q("SELECT abook.abook_xchan FROM abook WHERE abook_profile = '%s'", dbesc($profile['profile_guid'])); $allowcid = "<" . $r0[0]['channel_hash'] . ">"; foreach ($r1 as $entry) { |