Code Duplication    Length = 5-5 lines in 2 locations

main/inc/lib/blog.lib.php 2 locations

@@ 2103-2107 (lines=5) @@
2100
				$row[] = Display::icon_mailto_link($a_infosUser["email"]);
2101
2102
				//Link to register users
2103
				if ($a_infosUser["user_id"] != $_SESSION['_user']['user_id']){
2104
					$row[] = "<a class=\"btn btn-primary \" href=\"" .api_get_self()."?action=manage_members&blog_id=$blog_id&register=yes&user_id=" . $a_infosUser["user_id"]."\">" . get_lang('Register')."</a>";
2105
				} else {
2106
					$row[] = '';
2107
				}
2108
				$user_data[] = $row;
2109
			}
2110
		}
@@ 2212-2216 (lines=5) @@
2209
			$row[] = $task;
2210
			//Link to register users
2211
2212
			if ($myrow["user_id"] != $_user['user_id']) {
2213
				$row[] = "<a class=\"btn btn-primary\" href=\"" .api_get_self()."?action=manage_members&blog_id=$blog_id&unregister=yes&user_id=" . $myrow['user_id']."\">" . get_lang('UnRegister')."</a>";
2214
			} else {
2215
				$row[] = '';
2216
			}
2217
2218
			$user_data[] = $row;
2219
		}