diff --git a/docs/stats.php b/docs/stats.php index 7d304d5..76cd5d2 100755 --- a/docs/stats.php +++ b/docs/stats.php @@ -39,7 +39,8 @@ foreach ($result as $usern) { $theuser = $usern['username']; - $followers = $frs[$theuser]; + $followers = $frs[$theuser]; + foreach ($followers as $follown) { $fn = $follown['target']; @@ -60,6 +61,7 @@ foreach ($result as $usera) { $una = $usera['username']; $pr[$una] = 0; + if (count($frs[$una]) == 0) continue; foreach ($result as $userb) { $unb = $userb['username']; $matrixe[$una][$unb] = 0;