Skip to content

Commit

Permalink
Update AnisearchBridge.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Tone866 authored Mar 22, 2024
1 parent abac853 commit 50b4433
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bridges/AnisearchBridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ public function collectData()
$limit = 10;
$dom = getSimpleHTMLDOM($this->getInput('category'));
foreach ($dom->find('li.btype0') as $key => $li) {
if ($key > $limit)
if ($key > $limit) {
break;
}

$a = $li->find('a', 0);
$title = $a->find('span.title', 0);
Expand Down

0 comments on commit 50b4433

Please sign in to comment.