From 53d3c372f35d0402aaa4ac876446f9eaa856640d Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Mon, 27 Jan 2020 23:09:59 -0500 Subject: [PATCH] [widgets] Remove uses of deprecated profile field --- widgets/widget_friendheader.php | 2 +- widgets/widget_friends.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/widgets/widget_friendheader.php b/widgets/widget_friendheader.php index 8ce1eac6..f47b1b57 100644 --- a/widgets/widget_friendheader.php +++ b/widgets/widget_friendheader.php @@ -27,7 +27,7 @@ function friendheader_widget_content(&$a, $conf) { $r = q("SELECT `profile`.`uid` AS `profile_uid`, `profile`.* , `user`.* FROM `profile` 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']) ); if (!count($r)) { diff --git a/widgets/widget_friends.php b/widgets/widget_friends.php index c49d052d..a3951cdc 100644 --- a/widgets/widget_friends.php +++ b/widgets/widget_friends.php @@ -29,7 +29,7 @@ function friends_widget_content(&$a, $conf) { $r = q("SELECT `profile`.`uid` AS `profile_uid`, `profile`.* , `user`.* FROM `profile` 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']) ); -- 2.39.5