-
assigned issue to
Duration 'Unknown' Bug
Issue #121
invalid
There is a small bug if the duration of an anime item is 'Unknown'.
The check for this on line 409 in src/Atarashii/APIBundle/Parser/AnimeParser.php is now:
else if (strpos($duration, 'Unknown') == false) {
but should be:
else if (strpos($duration, 'Unknown') === false) {
as before the commit 98d4389.
This makes animes with state Unknown to go inside of this else if statement because the strpos of 'Unknown' in $duration becomes 0 which is seen as false.
Comments (2)
-
-
- changed status to invalid
- Log in to comment