From c42936e2652a0d0f422afb2b7157b03aa0f2eaf6 Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 15 Feb 2013 17:23:02 -0800 Subject: we don't need to quote or rename 'default' in mySQL if we just use the original column name 'is_default' --- mod/profile_photo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mod/profile_photo.php') 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()) ); -- cgit v1.2.3