Browse Source

Make sure iterator ends up outside the bounds of the for loop if using old api

HalianElf 5 years ago
parent
commit
3faf6d85aa
1 changed files with 1 additions and 1 deletions
  1. 1 1
      api/homepage/radarr.php

+ 1 - 1
api/homepage/radarr.php

@@ -384,7 +384,7 @@ trait RadarrHomepageItem
 					}
 					if (isset($child['inCinemas']) && $child['physicalRelease'] == $child['inCinemas']) {
 						array_push($type, "cinema");
-						$j++;
+						$j += 2;
 					}
 				} elseif ($j == 1 && $this->config['radarrDigitalRelease'] && isset($child['digitalRelease'])) {
 					$releaseDate = $child['digitalRelease'];