We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d05532c commit 9897ff0Copy full SHA for 9897ff0
apps/php/guru-include/private/pages/event.php
@@ -60,7 +60,7 @@
60
<span><?= $event->name ?></span>
61
<!-- <span class="event-title__light"> (Россия, 2018)</span> -->
62
</span>
63
- <? if ($event->nearSession && count($event->objects) < 2) { ?>
+ <? if (is_array($event->objects) && !empty($event->objects) && $event->nearSession && count($event->objects) < 2) { ?>
64
<a class="btn btn-primary arcom__btn" href="<?= frameUrl($event->nearSession->id); ?>">Купить билет</a>
65
<? } ?>
66
</div><span class="about-text">
0 commit comments