Procházet zdrojové kódy

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

HalianElf před 5 roky
rodič
revize
3faf6d85aa
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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'];