From 16435b18f25f7dc2f486090183ef00eacd054918 Mon Sep 17 00:00:00 2001 From: Git Date: Thu, 31 Jan 2013 08:00:19 +0000 Subject: [PATCH] Empty commit --- sections/artist/concerts.php | 50 +++++++++++++++++++--------------- sections/user/takemoderate.php | 2 +- 2 files changed, 29 insertions(+), 23 deletions(-) diff --git a/sections/artist/concerts.php b/sections/artist/concerts.php index 6ff8bc8b..a69894ee 100644 --- a/sections/artist/concerts.php +++ b/sections/artist/concerts.php @@ -1,28 +1,36 @@ +log_var($ArtistEvents); +if ($ArtistEvents === false) { // Something went wrong + echo '
An error occurred when retrieving concert info.
'; +} elseif (!isset($ArtistEvents['events']['event'])) { // No upcoming events + echo '
This artist has no upcoming concerts.
'; + $Hidden = true; +} else { + echo ''; +} +$Concerts .= ob_get_clean(); +?> +
 Upcoming concerts [Toggle]
-
-log_var($ArtistEvents); - if ($ArtistEvents === false) { // Something went wrong - echo '
An error occurred when retrieving concert info.
'; - } elseif (!isset($ArtistEvents['events']['event'])) { // No upcoming events - echo '
This artist has no upcoming concerts.
'; - } else { - echo '
    '; - if (isset($ArtistEvents['events']['event'][0])) { // Multiple events - foreach ($ArtistEvents['events']['event'] as $Event) { - make_concert_link($Event); - } - } else { // Single event - make_concert_link($ArtistEvents['events']['event']); - } - echo '
'; - } -?> +
> +
@@ -47,9 +55,7 @@ function make_concert_link($Event)
  • - [Go to thread]
  • -