From c23543f4634e565b2af269dbcec6996f8e29a999 Mon Sep 17 00:00:00 2001
From: Hypolite Petovan <hypolite@mrpetovan.com>
Date: Fri, 13 Dec 2019 15:27:16 -0500
Subject: [PATCH] Restore correct highlighted contact tabs

---
 mod/common.php  | 2 +-
 mod/crepair.php | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/mod/common.php b/mod/common.php
index 9d441f18a..4f033de14 100644
--- a/mod/common.php
+++ b/mod/common.php
@@ -136,7 +136,7 @@ function common_content(App $a)
 	$title = '';
 	$tab_str = '';
 	if ($cmd === 'loc' && $cid && local_user() == $uid) {
-		$tab_str = Module\Contact::getTabsHTML($a, $contact, 4);
+		$tab_str = Module\Contact::getTabsHTML($a, $contact, 5);
 	} else {
 		$title = L10n::t('Common Friends');
 	}
diff --git a/mod/crepair.php b/mod/crepair.php
index 84cb458fa..b9b865143 100644
--- a/mod/crepair.php
+++ b/mod/crepair.php
@@ -134,7 +134,7 @@ function crepair_content(App $a)
 
 	$update_profile = in_array($contact['network'], Protocol::FEDERATED);
 
-	$tab_str = Module\Contact::getTabsHTML($a, $contact, 5);
+	$tab_str = Module\Contact::getTabsHTML($a, $contact, 6);
 
 	$tpl = Renderer::getMarkupTemplate('crepair.tpl');
 	$o = Renderer::replaceMacros($tpl, [