Bugfix for PR 3630: "get_contact_details_by_url" not always returned a value
This commit is contained in:
+1
-1
@@ -39,7 +39,7 @@ function hovercard_content() {
|
||||
// If a contact is connected the url is internally changed to "redir/CID". We need the pure url to search for
|
||||
// the contact. So we strip out the contact id from the internal url and look in the contact table for
|
||||
// the real url (nurl)
|
||||
if(local_user() && strpos($profileurl, "redir/") === 0) {
|
||||
if (local_user() && strpos($profileurl, "redir/") === 0) {
|
||||
$cid = intval(substr($profileurl, 6));
|
||||
$r = dba::select('contact', array('nurl', 'self'), array('id' => $cid), array('limit' => 1));
|
||||
$profileurl = ($r["nurl"] ? $r["nurl"] : "");
|
||||
|
||||
Reference in New Issue
Block a user