Skip to content

Commit

Permalink
[NasaApodBridge] Fix header being parsed as item (#1586)
Browse files Browse the repository at this point in the history
  • Loading branch information
corenting authored Oct 7, 2020
1 parent d3455dd commit fe166d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bridges/NasaApodBridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ public function collectData(){

$list = explode('<br>', $html->find('b', 0)->innertext);

for($i = 0; $i < 3; $i++) {
$line = $list[$i];
// Start at 1 to skip the "APOD Full Archive" on top of the page
for($i = 1; $i < 4; $i++) {
$item = array();

$uri_page = $html->find('a', $i + 3)->href;
Expand Down

0 comments on commit fe166d0

Please sign in to comment.