diff --git a/sections/user/linkedfunctions.php b/sections/user/linkedfunctions.php
index 3412d7f5..bdf18153 100644
--- a/sections/user/linkedfunctions.php
+++ b/sections/user/linkedfunctions.php
@@ -99,7 +99,7 @@ function unlink_user($UserID) {
JOIN users_dupes AS d2 ON d2.GroupID = d1.GroupID
SET i.AdminComment = CONCAT('".db_string($AdminComment)."\n\n', i.AdminComment)
WHERE d2.UserID = $UserID");
- $DB->query("DELETE FROM users_dupes WHERE UserID='$UserID'");
+ $DB->query("DELETE FROM users_dupes WHERE UserID = '$UserID'");
$DB->query("
DELETE g.*
FROM dupe_groups AS g
@@ -197,10 +197,10 @@ function user_dupes_table($UserID) {
-
# Linked Account=(($DupeCount == 2) ? '' : 's')?> (=max($DupeCount - 1, 0)?>)
View
+
# Linked Accounts (=max($DupeCount - 1, 0)?>)
View
- =($DupeCount ? '' : '')?>
+ =($DupeCount ? "
\n" : '')?>
$i = 0;
foreach ($Dupes as $Dupe) {
@@ -208,18 +208,20 @@ function user_dupes_table($UserID) {
list($DupeID) = $Dupe;
$DupeInfo = Users::user_info($DupeID);
?>
- =Users::format_username($DupeID, true, true, true, true)?>
- X
- |
+ =Users::format_username($DupeID, true, true, true, true)?>
+ X
+ |
- if ($i == 5) {
+ if ($i == 4) {
$i = 0;
- echo "\t\t\t\t\t
\n\t\t\t\t\t";
+ echo "\t\t\t\t\t
\n\t\t\t\t\t\n";
}
}
if ($DupeCount) {
- for ($j = $i; $j < 5; $j++) {
- echo "\t\t\t\t\t\t | ";
+ if ($i !== 0) {
+ for ($j = $i; $j < 4; $j++) {
+ echo "\t\t\t\t\t\t | \n";
+ }
}
?>