Changed check category
This commit is contained in:
parent
66f291f739
commit
75c348dbca
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -48,7 +48,7 @@
|
|||
|
||||
<div>
|
||||
|
||||
<% if (category.movies.length) { %>
|
||||
<% if (typeof category === 'object' && category.movies && category.movies.length) { %>
|
||||
|
||||
<% category.movies.forEach(function (movie) { %>
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue