diff --git a/mod/profile_photo.php b/mod/profile_photo.php index 7b29b3635..ea7a01bc9 100644 --- a/mod/profile_photo.php +++ b/mod/profile_photo.php @@ -256,7 +256,7 @@ function profile_photo_content(&$a) { profile_photo_crop_ui_head($a, $ph); } - $profiles = q("select id, profile_name as name, is_default as pdefault from profile where uid = %d", + $profiles = q("select id, profile_name as name, is_default from profile where uid = %d", intval(local_user()) ); diff --git a/view/tpl/profile_photo.tpl b/view/tpl/profile_photo.tpl index 49323e01c..05952afa4 100644 --- a/view/tpl/profile_photo.tpl +++ b/view/tpl/profile_photo.tpl @@ -12,7 +12,7 @@
diff --git a/view/tpl/smarty3/profile_photo.tpl b/view/tpl/smarty3/profile_photo.tpl index f13dee26e..8c4fbfafa 100644 --- a/view/tpl/smarty3/profile_photo.tpl +++ b/view/tpl/smarty3/profile_photo.tpl @@ -17,7 +17,7 @@