[NasaApodBridge] Fix header being parsed as item (#1586)

This commit is contained in:
Corentin Garcia 2020-10-07 08:16:26 +02:00 committed by GitHub
parent d3455dd18a
commit fe166d0216
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,8 +14,8 @@ class NasaApodBridge extends BridgeAbstract {
$list = explode('<br>', $html->find('b', 0)->innertext); $list = explode('<br>', $html->find('b', 0)->innertext);
for($i = 0; $i < 3; $i++) { // Start at 1 to skip the "APOD Full Archive" on top of the page
$line = $list[$i]; for($i = 1; $i < 4; $i++) {
$item = array(); $item = array();
$uri_page = $html->find('a', $i + 3)->href; $uri_page = $html->find('a', $i + 3)->href;