Skip to content

Commit

Permalink
fix(追番模板): undefined var
Browse files Browse the repository at this point in the history
Fix #899
  • Loading branch information
KotoriK committed Jun 19, 2024
1 parent 0a8343c commit b0b5af4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion inc/classes/MyAnimeList.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ public function get_all_items()
}
else
{
$html = '';
$item_count = count($resp);
$total_episodes = 0;
foreach ((array)$resp as $item)
Expand All @@ -69,7 +70,7 @@ public function get_all_items()
__('Following ', 'sakurairo') . $item_count . __(' anime.', 'sakurairo') .
__(' Watched ', 'sakurairo') . $total_episodes . __(' episodes.', 'sakurairo') .
'</span></div>';
$html = $top_info . $html . '</div>';
$html = $top_info . $html;
return $html;
}
}
Expand Down
1 change: 1 addition & 0 deletions user/page-bangumi.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
$bgm = new \Sakura\API\MyAnimeList();
echo $bgm->get_all_items();
?>
</div>
<?php else: ?>
<div class="row">
<p> <?php _e("Please fill in the My Anime List Username in Sakura Options.","sakurairo"); ?></p>
Expand Down

0 comments on commit b0b5af4

Please sign in to comment.