start on contacts/profiles
This commit is contained in:
@@ -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())
|
||||
);
|
||||
|
||||
|
||||
@@ -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'),
|
||||
|
||||
@@ -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'])
|
||||
|
||||
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user