diff --git a/root/app/www/public/ajax/contributors.php b/root/app/www/public/ajax/contributors.php index 14f1817..e8b4863 100644 --- a/root/app/www/public/ajax/contributors.php +++ b/root/app/www/public/ajax/contributors.php @@ -25,11 +25,20 @@ if (str_contains($author, '<')) { list($author, $email) = explode('<', $author); } - $author = trim($author); + $author = trim($author); + + if (!$author) { + continue; + } + $authorStats = $git->contributorStats($author); $commitHistory = $git->contributorCommits($author); $newestCommit = $commitHistory['shell'][1]; + if (empty($newestCommit)) { + continue; + } + $changed = $added = $removed = 0; foreach ($authorStats['shell'] as $line) { @@ -120,17 +129,19 @@
= number_format($totalCommits['shell']) ?>
= $repoObjects ?>
= $repoSize ?>