Skip to content

Commit

Permalink
Hidden button for sale ticket
Browse files Browse the repository at this point in the history
  • Loading branch information
Slauta committed Jun 13, 2019
1 parent d05532c commit 9897ff0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/php/guru-include/private/pages/event.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
<span><?= $event->name ?></span>
<!-- <span class="event-title__light">&nbsp;(Россия, 2018)</span> -->
</span>
<? if ($event->nearSession && count($event->objects) < 2) { ?>
<? if (is_array($event->objects) && !empty($event->objects) && $event->nearSession && count($event->objects) < 2) { ?>
<a class="btn btn-primary arcom__btn" href="<?= frameUrl($event->nearSession->id); ?>">Купить билет</a>
<? } ?>
</div><span class="about-text">
Expand Down

0 comments on commit 9897ff0

Please sign in to comment.