X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fcontacts.php;h=999617aa19d155328ca638096cc51e7409fad362;hb=2a17c20fb8e910aeb814ab999cf9131478dd2b03;hp=38b49475ac890ce7dbe297cfd7f7cc42984a908e;hpb=a42c9616f97125b059f395b9b023fe1516a52d75;p=friendica.git diff --git a/mod/contacts.php b/mod/contacts.php index 38b49475ac..999617aa19 100644 --- a/mod/contacts.php +++ b/mod/contacts.php @@ -1,6 +1,8 @@ page['aside'] .= group_side(); } function contacts_post(&$a) { @@ -12,8 +14,7 @@ function contacts_post(&$a) { $contact_id = intval($a->argv[1]); if(! $contact_id) return; -dbg(2); -print_r($_POST); + $orig_record = q("SELECT * FROM `contact` WHERE `id` = %d AND `uid` = %d LIMIT 1", intval($contact_id), intval($_SESSION['uid']) @@ -60,14 +61,6 @@ print_r($_POST); - - - - - - - - function contacts_content(&$a) { if(! local_user()) { @@ -75,8 +68,6 @@ function contacts_content(&$a) { return; } - - if($a->argc == 3) { $contact_id = intval($a->argv[1]); @@ -185,7 +176,8 @@ function contacts_content(&$a) { '$photo' => $r[0]['photo'], '$name' => $r[0]['name'], '$dir_icon' => $dir_icon, - '$alt_text' => $alt_text + '$alt_text' => $alt_text, + '$url' => (($direction != DIRECTION_IN) ? "redir/{$r[0]['id']}" : $r[0]['url'] ) ));