diff --git a/index.php b/index.php index 64a1533..dc689cc 100644 --- a/index.php +++ b/index.php @@ -1,5 +1,7 @@ [^\/]+)\/?(?[^\/]+)?\/?$/'); define('SUPPLIER_REGEX', '/^[A-Za-z]\w{0,31}$/'); define('EVENT_REGEX', '/^\d{4}\-[01]\d\-[0123]\d$/'); @@ -238,7 +240,7 @@ if (!$isConfig and $hasSupplier) { - <?php echo strip_tags($config[$supplier]['title']); ?> — <?php echo strip_tags($config[$supplier]['subtitle']); ?> + <?php if ($hasSupplier) : ?><?php echo strip_tags($config[$supplier]['title']); ?><?php if (!$isConfig) : ?> — <?php echo strip_tags($config[$supplier]['subtitle']); ?><?php endif; ?><?php else : ?><?php echo DEFAULT_TITLE; ?><?php endif; ?> @@ -249,7 +251,7 @@ if (!$isConfig and $hasSupplier) { - +