New errata corrections

This commit is contained in:
RobinNixon
2021-11-22 11:21:03 +00:00
parent a8d4666114
commit 8768e012f7
6 changed files with 24 additions and 4 deletions
+6 -2
View File
@@ -27,16 +27,20 @@
$result = queryMysql("SELECT * FROM friends WHERE user='$view'");
$j = 0;
while ($row = $result->fetch())
{
$followers[$j] = $row['friend'];
$followers[$j+] = $row['friend'];
}
$result = queryMysql("SELECT * FROM friends WHERE friend='$view'");
$j = 0;
while ($row = $result->fetch())
{
$following[$j] = $row['user'];
$following[$j++] = $row['user'];
}
$mutual = array_intersect($followers, $following);