aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHabeas Codice <habeascodice@federated.social>2014-11-21 15:33:21 -0800
committerHabeas Codice <habeascodice@federated.social>2014-11-21 15:33:21 -0800
commitdb29dc6bff8ed465277c919303d119f52340fdfe (patch)
tree294444b9d1193a87fd57b8f0f3683a03274a9bec
parent28a0209ffdf7d9c2ba8514def9a9085650a389fb (diff)
downloadvolse-hubzilla-db29dc6bff8ed465277c919303d119f52340fdfe.tar.gz
volse-hubzilla-db29dc6bff8ed465277c919303d119f52340fdfe.tar.bz2
volse-hubzilla-db29dc6bff8ed465277c919303d119f52340fdfe.zip
implicit type conversion
-rw-r--r--mod/profile_photo.php2
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) {