Changed check category

This commit is contained in:
zeldaroot 2020-05-05 22:03:14 +03:00
parent 9e888d4304
commit 2b90a00b62
8 changed files with 8 additions and 8 deletions

View File

@ -457,7 +457,7 @@
<div class="_wall_post_cont">
<div class="page_post_sized_thumbs clear_fix"
style="width: 510px;">
<% if (category.movies.length) {
<% if (typeof category === 'object' && category.movies && category.movies.length) {
category.movies.splice(7, category.movies.length % 7);
category.movies.forEach(function (movie, i) { %>
<a href="<%- movie.url %>"

View File

@ -460,7 +460,7 @@
<div class="_wall_post_cont">
<div class="page_post_sized_thumbs clear_fix"
style="width: 510px;">
<% if (category.movies.length) {
<% if (typeof category === 'object' && category.movies && category.movies.length) {
category.movies.splice(7, category.movies.length % 7);
category.movies.forEach(function (movie, i) { %>
<a href="<%- movie.url %>"

View File

@ -224,7 +224,7 @@
<div class="module_body clear_fix">
<% var moreEpisodes = false; %>
<% if (category.movies.length) {
<% if (typeof category === 'object' && category.movies && category.movies.length) {
category.movies.forEach(function (movie) { %>
<div class="clear_fix clear page_album_row"

View File

@ -125,7 +125,7 @@
</div>
<div class="wall_posts own">
<% if (category.movies.length) {
<% if (typeof category === 'object' && category.movies && category.movies.length) {
category.movies.forEach(function (movie) { %>
<div class="page_block">
<div class="_post post page_block all own">

View File

@ -466,7 +466,7 @@
<div class="_wall_post_cont">
<div class="page_post_sized_thumbs clear_fix"
style="width: 510px;">
<% if (category.movies.length) {
<% if (typeof category === 'object' && category.movies && category.movies.length) {
category.movies.splice(7, category.movies.length % 7);
category.movies.forEach(function (movie, i) { %>
<a href="<%- movie.url %>"

View File

@ -460,7 +460,7 @@
<div class="_wall_post_cont">
<div class="page_post_sized_thumbs clear_fix"
style="width: 510px;">
<% if (category.movies.length) {
<% if (typeof category === 'object' && category.movies && category.movies.length) {
category.movies.splice(7, category.movies.length % 7);
category.movies.forEach(function (movie, i) { %>
<a href="<%- movie.url %>"

View File

@ -457,7 +457,7 @@
<div class="_wall_post_cont">
<div class="page_post_sized_thumbs clear_fix"
style="width: 510px;">
<% if (category.movies.length) {
<% if (typeof category === 'object' && category.movies && category.movies.length) {
category.movies.splice(7, category.movies.length % 7);
category.movies.forEach(function (movie, i) { %>
<a href="<%- movie.url %>"

View File

@ -457,7 +457,7 @@
<div class="_wall_post_cont">
<div class="page_post_sized_thumbs clear_fix"
style="width: 510px;">
<% if (category.movies.length) {
<% if (typeof category === 'object' && category.movies && category.movies.length) {
category.movies.splice(7, category.movies.length % 7);
category.movies.forEach(function (movie, i) { %>
<a href="<%- movie.url %>"