From fdda4be452b6c3f95288fcd8cac456faad08a426 Mon Sep 17 00:00:00 2001 From: rabuzarus <> Date: Mon, 26 Oct 2015 00:19:55 +0100 Subject: [PATCH] manage-selector: use an easier sql querry --- mod/manage.php | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/mod/manage.php b/mod/manage.php index 37d7542fe5..bfa4d1475c 100644 --- a/mod/manage.php +++ b/mod/manage.php @@ -101,14 +101,10 @@ function manage_content(&$a) { //getting additinal information for each identity foreach ($identities as $key=>$id) { - $thumb = q("SELECT `thumb` FROM `contact` WHERE `uid` = %d AND `name` = '%s' AND `nick` = '%s' AND `nurl` = '%s' - AND (`network` = '%s' OR `self` = 1)", - intval($a->user['uid']), - dbesc($id['username']), - dbesc($id['nickname']), - dbesc(normalise_link($a->get_baseurl() . '/profile/' . $id['nickname'])), - dbesc(NETWORK_DFRN) - ); + $thumb = q("SELECT `thumb` FROM `contact` WHERE `uid` = '%s' AND `self` = 1", + dbesc($id['uid']) + ); + $identities[$key][thumb] = $thumb[0][thumb]; $identities[$key]['selected'] = (($id['nickname'] === $a->user['nickname']) ? true : false); -- 2.39.5