]> git.mxchange.org Git - friendica.git/commitdiff
manage-selector: use an easier sql querry
authorrabuzarus <>
Sun, 25 Oct 2015 23:19:55 +0000 (00:19 +0100)
committerrabuzarus <>
Sun, 25 Oct 2015 23:19:55 +0000 (00:19 +0100)
mod/manage.php

index 37d7542fe56fe575f102aa0df803fc467a91899f..bfa4d1475c891f3de026fd48d8fa8e14c0acc4d5 100644 (file)
@@ -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);