mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-19 23:55:19 +00:00
multi-profile - bugs
This commit is contained in:
parent
c16b65b5bd
commit
765911172e
1 changed files with 3 additions and 2 deletions
5
boot.php
5
boot.php
|
@ -1463,8 +1463,9 @@ function profile_load(&$a, $nickname, $profile = '') {
|
|||
}
|
||||
|
||||
if(! $profile) {
|
||||
$r = q("SELECT abook_profile FROM abook WHERE abook_xchan = '%s' limit 1",
|
||||
dbesc($observer['xchan_hash'])
|
||||
$r = q("SELECT abook_profile FROM abook WHERE abook_xchan = '%s' and abook_channel = '%d' limit 1",
|
||||
dbesc($observer['xchan_hash']),
|
||||
intval($user[0]['channel_id'])
|
||||
);
|
||||
if($r)
|
||||
$profile = $r[0]['abook_profile'];
|
||||
|
|
Loading…
Reference in a new issue