prevent error when rate limit for gh api

This commit is contained in:
Ben Harris 2018-03-22 16:43:07 -04:00
parent 19aeb0c63f
commit 0e5940404d
2 changed files with 2 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -134,7 +134,7 @@
<hr>
<?php
ini_set('user_agent', 'tilde-team');
foreach (json_decode(file_get_contents("https://api.github.com/orgs/tilde-team/repos")) as $repo): ?>
foreach (json_decode(file_get_contents("https://api.github.com/orgs/tilde-team/repos")) ?? [] as $repo): ?>
<div class="list-group">
<div class="list-group-item">