fix unable to crop profile pic on postgres

This commit is contained in:
Habeas Codice 2015-05-30 19:49:32 -07:00
parent cd3284d081
commit 0df0fb4b46

View File

@ -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);
}