url_from_contact_guid: move network constant to arg list
This commit is contained in:
parent
b631442760
commit
769b849665
1 changed files with 4 additions and 2 deletions
|
@ -714,8 +714,10 @@ class Diaspora {
|
||||||
public static function url_from_contact_guid($fcontact_guid) {
|
public static function url_from_contact_guid($fcontact_guid) {
|
||||||
logger("fcontact guid is ".$fcontact_guid, LOGGER_DEBUG);
|
logger("fcontact guid is ".$fcontact_guid, LOGGER_DEBUG);
|
||||||
|
|
||||||
$r = q("SELECT `url` FROM `fcontact` WHERE `guid` = '%s' AND `network` = '" . NETWORK_DIASPORA . "' AND `url` != ''",
|
$r = q("SELECT `url` FROM `fcontact` WHERE `url` != '' AND `network` = '%s' AND `guid` = '%s'",
|
||||||
$fcontact_guid);
|
dbesc(NETWORK_DIASPORA),
|
||||||
|
dbesc($fcontact_guid)
|
||||||
|
);
|
||||||
|
|
||||||
if (dbm::is_result($r)) {
|
if (dbm::is_result($r)) {
|
||||||
return $r[0]['url'];
|
return $r[0]['url'];
|
||||||
|
|
Loading…
Reference in a new issue