start on contacts/profiles

This commit is contained in:
friendica
2012-08-30 18:17:38 -07:00
parent f6d198ce5d
commit eac29badb2
28 changed files with 102 additions and 104 deletions

View File

@@ -261,7 +261,7 @@
$usr = q("select * from user where uid = %d limit 1",
intval(local_user())
);
$profile = q("select * from profile where uid = %d and `is-default` = 1 limit 1",
$profile = q("select * from profile where uid = %d and `is_default` = 1 limit 1",
intval(local_user())
);

View File

@@ -101,7 +101,7 @@ function create_identity($arr) {
$newuid = $ret['entity']['entity_id'];
$r = q("INSERT INTO `profile` ( `uid`, `profile_name`, `is-default`, `name`, `photo`, `thumb`)
$r = q("INSERT INTO `profile` ( `uid`, `profile_name`, `is_default`, `name`, `photo`, `thumb`)
VALUES ( %d, '%s', %d, '%s', '%s', '%s') ",
intval($ret['entity']['entity_id']),
t('default'),

View File

@@ -528,7 +528,7 @@ function contact_block() {
if($shown == 0)
return;
if((! is_array($a->profile)) || ($a->profile['hide-friends']))
if((! is_array($a->profile)) || ($a->profile['hide_friends']))
return $o;
$r = q("SELECT COUNT(*) AS `total` FROM `contact` WHERE `uid` = %d AND `self` = 0 AND `blocked` = 0 and `pending` = 0 AND `hidden` = 0 AND `archive` = 0",
intval($a->profile['uid'])

View File

@@ -213,7 +213,7 @@ function create_user($arr) {
}
if(x($newuid) !== false) {
$r = q("INSERT INTO `profile` ( `uid`, `profile_name`, `is-default`, `name`, `photo`, `thumb`, `publish`, `net-publish` )
$r = q("INSERT INTO `profile` ( `uid`, `profile_name`, `is_default`, `name`, `photo`, `thumb`, `publish`, `net-publish` )
VALUES ( %d, '%s', %d, '%s', '%s', '%s', %d, %d ) ",
intval($newuid),
t('default'),