one more check

This commit is contained in:
Vasil Kolev 2016-10-16 00:03:36 +03:00 committed by Openfest
parent d69b2b7b14
commit 581962c4b6
1 changed files with 1 additions and 2 deletions

View File

@ -4,7 +4,6 @@ get_header();
wp_nav_menu( array( 'theme_location' => 'footer-schedule', 'container_class' => 'content subnav cf' ) ); wp_nav_menu( array( 'theme_location' => 'footer-schedule', 'container_class' => 'content subnav cf' ) );
require("schedule-config.php"); require("schedule-config.php");
$content = require __DIR__ . DIRECTORY_SEPARATOR . 'schedule' . DIRECTORY_SEPARATOR . 'parse.php'; $content = require __DIR__ . DIRECTORY_SEPARATOR . 'schedule' . DIRECTORY_SEPARATOR . 'parse.php';
//var_dump($data); //var_dump($data);
?> ?>
@ -13,7 +12,7 @@ $content = require __DIR__ . DIRECTORY_SEPARATOR . 'schedule' . DIRECTORY_SEPARA
<h1><?php pll_e('Програма') ?></h1> <h1><?php pll_e('Програма') ?></h1>
<?php <?php
if (!empty($content)) { ?> if (!empty($content) && !empty($content['slots'])) { ?>
<table cellpadding="0" cellspacing="0" style="text-align: center;" class="schedule"> <table cellpadding="0" cellspacing="0" style="text-align: center;" class="schedule">
<thead> <thead>
<tr> <tr>