mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-25 12:03:41 +00:00
[widgets] Remove uses of deprecated profile field
This commit is contained in:
parent
6f45425817
commit
53d3c372f3
2 changed files with 2 additions and 2 deletions
|
@ -27,7 +27,7 @@ function friendheader_widget_content(&$a, $conf)
|
||||||
{
|
{
|
||||||
$r = q("SELECT `profile`.`uid` AS `profile_uid`, `profile`.* , `user`.* FROM `profile`
|
$r = q("SELECT `profile`.`uid` AS `profile_uid`, `profile`.* , `user`.* FROM `profile`
|
||||||
LEFT JOIN `user` ON `profile`.`uid` = `user`.`uid`
|
LEFT JOIN `user` ON `profile`.`uid` = `user`.`uid`
|
||||||
WHERE `user`.`uid` = %s AND `profile`.`is-default` = 1 LIMIT 1",
|
WHERE `user`.`uid` = %s LIMIT 1",
|
||||||
intval($conf['uid'])
|
intval($conf['uid'])
|
||||||
);
|
);
|
||||||
if (!count($r)) {
|
if (!count($r)) {
|
||||||
|
|
|
@ -29,7 +29,7 @@ function friends_widget_content(&$a, $conf)
|
||||||
{
|
{
|
||||||
$r = q("SELECT `profile`.`uid` AS `profile_uid`, `profile`.* , `user`.* FROM `profile`
|
$r = q("SELECT `profile`.`uid` AS `profile_uid`, `profile`.* , `user`.* FROM `profile`
|
||||||
LEFT JOIN `user` ON `profile`.`uid` = `user`.`uid`
|
LEFT JOIN `user` ON `profile`.`uid` = `user`.`uid`
|
||||||
WHERE `user`.`uid` = %s AND `profile`.`is-default` = 1 LIMIT 1",
|
WHERE `user`.`uid` = %s LIMIT 1",
|
||||||
intval($conf['uid'])
|
intval($conf['uid'])
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue