Changed check category

This commit is contained in:
zeldaroot 2020-05-05 22:03:56 +03:00
parent eb4a498906
commit dac03a8e30
8 changed files with 8 additions and 8 deletions

View File

@ -243,7 +243,7 @@
</div>
</h4>
</div>
<% if (category.movies.length) {
<% if (typeof category === 'object' && category.movies && category.movies.length) {
category.movies.forEach(function (movie) { %>
<div class="item">
<a href="<%- movie.url %>"><img src="<%- movie.poster %>" alt="<%= movie.title %>"

View File

@ -251,7 +251,7 @@
</div>
</h4>
</div>
<% if (category.movies.length) {
<% if (typeof category === 'object' && category.movies && category.movies.length) {
category.movies.forEach(function (movie) { %>
<div class="item">
<a href="<%- movie.url %>"><img src="<%- movie.poster %>" alt="<%= movie.title %>"

View File

@ -75,7 +75,7 @@ index[type].forEach(function (category) { %>
<div style="margin: 0 0 30px 0;color: #fff;font-size: 20px;font-weight: bold;"><%- category.name %></div>
<% var moreEpisodes = false; %>
<% if (category.movies.length) {
<% if (typeof category === 'object' && category.movies && category.movies.length) {
category.movies.forEach(function (movie) { %>


View File

@ -51,7 +51,7 @@
<div style="clear: both;"></div>
<% if (category.movies.length) {
<% if (typeof category === 'object' && category.movies && category.movies.length) {
category.movies.forEach(function (movie) { %>
<div class="story story_m">
<div class="s_name">

View File

@ -266,7 +266,7 @@
</div>
</h4>
</div>
<% if (category.movies.length) {
<% if (typeof category === 'object' && category.movies && category.movies.length) {
category.movies.forEach(function (movie) { %>
<div class="item">
<a href="<%- movie.url %>"><img src="<%- movie.poster %>" alt="<%= movie.title %>"

View File

@ -248,7 +248,7 @@
</div>
</h4>
</div>
<% if (category.movies.length) {
<% if (typeof category === 'object' && category.movies && category.movies.length) {
category.movies.forEach(function (movie) { %>
<div class="item">
<a href="<%- movie.url %>"><img src="<%- movie.poster %>" alt="<%= movie.title %>"

View File

@ -211,7 +211,7 @@
</div>
</h4>
</div>
<% if (category.movies.length) {
<% if (typeof category === 'object' && category.movies && category.movies.length) {
category.movies.forEach(function (movie) { %>
<div class="item">
<a href="<%- movie.url %>"><img src="<%- movie.poster %>" alt="<%= movie.title %>"

View File

@ -246,7 +246,7 @@
</div>
</h4>
</div>
<% if (category.movies.length) {
<% if (typeof category === 'object' && category.movies && category.movies.length) {
category.movies.forEach(function (movie) { %>
<div class="item">
<a href="<%- movie.url %>"><img src="<%- movie.poster %>" alt="<%= movie.title %>"