aboutsummaryrefslogtreecommitdiffstats
path: root/mod/profile_photo.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-08-30 18:17:38 -0700
committerfriendica <info@friendica.com>2012-08-30 18:17:38 -0700
commiteac29badb2fade43dfe3fd6373ffc675858143dd (patch)
treeecf3ec6007a22a755900c46a4bc1e4862cc08d06 /mod/profile_photo.php
parentf6d198ce5dcd9fe416975ff760439dfacbb83812 (diff)
downloadvolse-hubzilla-eac29badb2fade43dfe3fd6373ffc675858143dd.tar.gz
volse-hubzilla-eac29badb2fade43dfe3fd6373ffc675858143dd.tar.bz2
volse-hubzilla-eac29badb2fade43dfe3fd6373ffc675858143dd.zip
start on contacts/profiles
Diffstat (limited to 'mod/profile_photo.php')
-rw-r--r--mod/profile_photo.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/mod/profile_photo.php b/mod/profile_photo.php
index 1285bf08e..058948ef0 100644
--- a/mod/profile_photo.php
+++ b/mod/profile_photo.php
@@ -28,11 +28,11 @@ function profile_photo_post(&$a) {
$is_default_profile = 1;
if($_REQUEST['profile']) {
- $r = q("select id, `is-default` from profile where id = %d and uid = %d limit 1",
+ $r = q("select id, `is_default` from profile where id = %d and uid = %d limit 1",
intval($_REQUEST['profile']),
intval(local_user())
);
- if(count($r) && (! intval($r[0]['is-default'])))
+ if(count($r) && (! intval($r[0]['is_default'])))
$is_default_profile = 0;
}
@@ -225,7 +225,7 @@ function profile_photo_content(&$a) {
// go ahead as we have jus uploaded a new photo to crop
}
- $profiles = q("select `id`,`profile_name` as `name`,`is-default` as `default` from profile where uid = %d",
+ $profiles = q("select `id`,`profile_name` as `name`,`is_default` as `default` from profile where uid = %d",
intval(local_user())
);