]> git.mxchange.org Git - friendica.git/blobdiff - mod/contacts.php
The index changed, so the database version must be increased as well.
[friendica.git] / mod / contacts.php
index f7379d0c8a3d9613fd839592d0b4eee54302107f..a3263f39599bbce886c5b444f8ab036edaef6597 100644 (file)
@@ -44,6 +44,9 @@ function contacts_init(&$a) {
                        $follow_widget = follow_widget();
        }
 
+       if ($_GET['nets'] == "all")
+               $_GET['nets'] = "";
+
        $groups_widget .= group_side('contacts','group',false,0,$contact_id);
        $findpeople_widget .= findpeople_widget();
        $networks_widget .= networks_widget('contacts',$_GET['nets']);
@@ -402,6 +405,9 @@ function contacts_content(&$a) {
                                break;
                }
 
+               if(!in_array($contact['network'], array(NETWORK_DFRN, NETWORK_OSTATUS, NETWORK_DIASPORA)))
+                               $relation_text = "";
+
                $relation_text = sprintf($relation_text,$contact['name']);
 
                if(($contact['network'] === NETWORK_DFRN) && ($contact['rel'])) {
@@ -476,6 +482,9 @@ function contacts_content(&$a) {
                if (in_array($contact['network'], array(NETWORK_FEED, NETWORK_MAIL, NETWORK_MAIL2)))
                        $poll_interval = contact_poll_interval($contact['priority'],(! $poll_enabled));
 
+               if ($contact['network'] == NETWORK_DFRN)
+                       $profile_select = contact_profile_assign($contact['profile-id'],(($contact['network'] !== NETWORK_DFRN) ? true : false));
+
                $o .= replace_macros($tpl, array(
                        '$header' => t('Contact Editor'),
                        '$tab_str' => $tab_str,
@@ -503,7 +512,7 @@ function contacts_content(&$a) {
                        '$updpub' => t('Update public posts'),
                        '$last_update' => $last_update,
                        '$udnow' => t('Update now'),
-                       '$profile_select' => contact_profile_assign($contact['profile-id'],(($contact['network'] !== NETWORK_DFRN) ? true : false)),
+                       '$profile_select' => $profile_select,
                        '$contact_id' => $contact['id'],
                        '$block_text' => (($contact['blocked']) ? t('Unblock') : t('Block') ),
                        '$ignore_text' => (($contact['readonly']) ? t('Unignore') : t('Ignore') ),