manage-selector: sql - check for same baseurl

This commit is contained in:
rabuzarus 2015-10-25 18:04:20 +01:00
parent 4c263aa4ac
commit 87c559d605

View file

@ -101,10 +101,12 @@ function manage_content(&$a) {
//getting additinal information for each identity //getting additinal information for each identity
foreach ($identities as $key=>$id) { foreach ($identities as $key=>$id) {
$thumb = q("SELECT `thumb` FROM `contact` WHERE `uid` = %d AND `name` = '%s' AND `nick` = '%s' AND (`network` = '%s' OR `self` = 1)", $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']), intval($a->user['uid']),
dbesc($id['username']), dbesc($id['username']),
dbesc($id['nickname']), dbesc($id['nickname']),
dbesc(normalise_link($a->get_baseurl() . '/profile/' . $id['nickname'])),
dbesc(NETWORK_DFRN) dbesc(NETWORK_DFRN)
); );
$identities[$key][thumb] = $thumb[0][thumb]; $identities[$key][thumb] = $thumb[0][thumb];