From c5856d690beb87d65eaf223ee9de8b29bf3e781b Mon Sep 17 00:00:00 2001 From: Olivier Berten Date: Tue, 12 Jan 2021 22:44:32 +0100 Subject: [PATCH] Don't create a list when there's only one gabc element --- chant.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/chant.php b/chant.php index 66a76ff..0f136fc 100644 --- a/chant.php +++ b/chant.php @@ -223,11 +223,15 @@ if(is_string($content)) { foreach($content as $e) { if($e[0] == 'gabc') $gabcs[] = $e[1]; } - echo "
  • GABC
  • \n"; } foreach(array('pdf','svg','eps','png') as $a) { echo '
  • '.strtoupper($a).'
  • '."\n";