X-Git-Url: https://defaria.com/gitweb/?a=blobdiff_plain;f=web%2Fdisplayset.php;h=dbce735015c1f0fba37c304b3de78955e0acd182;hb=674da66f3a92ece352779909a33494d30cf9c869;hp=111c43af5d5ca88313c67f9a874c11b9b4a6c047;hpb=3fb37fca3a2cfd094e936635616421cc52ada97d;p=songbook.git diff --git a/web/displayset.php b/web/displayset.php index 111c43a..dbce735 100644 --- a/web/displayset.php +++ b/web/displayset.php @@ -31,7 +31,7 @@ width: 100%;
"; @@ -61,14 +61,18 @@ foreach (file("$songDir/$set") as $line) { print basename ($song); } - if ($artist <> "") { - print " - $artist"; + print " - "; + + if (in_array ($artist, $artists)) { + print "$artist"; + } else { + print $artist; } // if print ""; } // foreach -print ""; +print ""; ?>