Changed check category

This commit is contained in:
zeldaroot 2020-05-05 22:03:28 +03:00
parent 66f291f739
commit 75c348dbca
8 changed files with 8 additions and 8 deletions

View File

@ -134,7 +134,7 @@
</div>
</div>
<ul class="bloggg" style="padding-top: 15px;">
<% if (category.movies.length) {
<% if (typeof category === 'object' && category.movies && category.movies.length) {
category.movies.splice(5, category.movies.length % 5);
category.movies.forEach(function (movie) { %>
<li>

View File

@ -153,7 +153,7 @@
</div>
</div>
<ul class="bloggg" style="padding-top: 15px;">
<% if (category.movies.length) {
<% if (typeof category === 'object' && category.movies && category.movies.length) {
category.movies.splice(5, category.movies.length % 5);
category.movies.forEach(function (movie) { %>
<li>

View File

@ -36,7 +36,7 @@
<ul class="msupdate_block_list">
<% var moreEpisodes = false; %>
<% if (category.movies.length) {
<% if (typeof category === 'object' && category.movies && category.movies.length) {
category.movies.forEach(function (movie) { %>
<li class="msupdate_block_list_item"

View File

@ -48,7 +48,7 @@
<div>
<% if (category.movies.length) { %>
<% if (typeof category === 'object' && category.movies && category.movies.length) { %>
<% category.movies.forEach(function (movie) { %>

View File

@ -225,7 +225,7 @@
</div>
</div>
<ul class="bloggg" style="padding-top: 15px;">
<% if (category.movies.length) {
<% if (typeof category === 'object' && category.movies && category.movies.length) {
category.movies.splice(5, category.movies.length % 5);
category.movies.forEach(function (movie) { %>
<li>

View File

@ -156,7 +156,7 @@
</div>
</div>
<ul class="bloggg" style="padding-top: 15px;">
<% if (category.movies.length) {
<% if (typeof category === 'object' && category.movies && category.movies.length) {
category.movies.splice(5, category.movies.length % 5);
category.movies.forEach(function (movie) { %>
<li>

View File

@ -134,7 +134,7 @@
</div>
</div>
<ul class="bloggg" style="padding-top: 15px;">
<% if (category.movies.length) {
<% if (typeof category === 'object' && category.movies && category.movies.length) {
category.movies.splice(5, category.movies.length % 5);
category.movies.forEach(function (movie) { %>
<li>

View File

@ -134,7 +134,7 @@
</div>
</div>
<ul class="bloggg" style="padding-top: 15px;">
<% if (category.movies.length) {
<% if (typeof category === 'object' && category.movies && category.movies.length) {
category.movies.splice(5, category.movies.length % 5);
category.movies.forEach(function (movie) { %>
<li>