diff options
author | friendica <info@friendica.com> | 2013-02-10 19:54:43 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-02-10 19:54:43 -0800 |
commit | 32d07c3df72ad12dae62f9d5f5d2a3f3c8f4ed7d (patch) | |
tree | ac287882b6079bcc0c2a69b01cae6a3dd036d5c2 /mod/profile_photo.php | |
parent | b92cdd2a271966fb7d7bf78b100140a5c65e6fde (diff) | |
download | volse-hubzilla-32d07c3df72ad12dae62f9d5f5d2a3f3c8f4ed7d.tar.gz volse-hubzilla-32d07c3df72ad12dae62f9d5f5d2a3f3c8f4ed7d.tar.bz2 volse-hubzilla-32d07c3df72ad12dae62f9d5f5d2a3f3c8f4ed7d.zip |
fix profile selector on profile_photo page (unquoted mysql reserved word 'default')
Diffstat (limited to 'mod/profile_photo.php')
-rw-r--r-- | mod/profile_photo.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mod/profile_photo.php b/mod/profile_photo.php index 560cd6b12..5e58ee093 100644 --- a/mod/profile_photo.php +++ b/mod/profile_photo.php @@ -257,11 +257,11 @@ function profile_photo_content(&$a) { // go ahead as if we have just uploaded a new photo to crop profile_photo_crop_ui_head($a, $ph); } - - $profiles = q("select id, profile_name as name, is_default as default from profile where uid = %d", +dbg(1); + $profiles = q("select id, profile_name as name, is_default as pdefault from profile where uid = %d", intval(local_user()) ); - +dbg(0); if(! x($a->data,'imagecrop')) { $tpl = get_markup_template('profile_photo.tpl'); |