aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHabeas Codice <habeascodice@federated.social>2015-05-30 19:49:32 -0700
committerHabeas Codice <habeascodice@federated.social>2015-05-30 19:49:32 -0700
commit0df0fb4b4660b1811c22a7acba35bd62e07747ea (patch)
treed0a3c93010a84d296d8b9cda463245db8f076da6
parentcd3284d081bc86d0646234b490bc0cc9da60c638 (diff)
downloadvolse-hubzilla-0df0fb4b4660b1811c22a7acba35bd62e07747ea.tar.gz
volse-hubzilla-0df0fb4b4660b1811c22a7acba35bd62e07747ea.tar.bz2
volse-hubzilla-0df0fb4b4660b1811c22a7acba35bd62e07747ea.zip
fix unable to crop profile pic on postgres
-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 fd5ea2af2..597b5f66d 100644
--- a/mod/profile_photo.php
+++ b/mod/profile_photo.php
@@ -341,7 +341,7 @@ function profile_photo_content(&$a) {
return;
}
- $ph = photo_factory($r[0]['data'], $r[0]['type']);
+ $ph = photo_factory(dbunescbin($r[0]['data']), $r[0]['type']);
// go ahead as if we have just uploaded a new photo to crop
profile_photo_crop_ui_head($a, $ph);
}