Show empty incipits

This commit is contained in:
Olivier Berten 2014-03-10 17:00:38 +01:00
parent b11f2fc2b8
commit 1f48b98fee
2 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ if(count($chants)) {
}
echo "<ul class=\"incipit\">\n";
foreach($chants as $c) {
$incipit = $c['incipit']?format_incipit($c['incipit']):"===";
$incipit = $c['incipit']?format_incipit($c['incipit']):"░░░░";
echo '<li class="usage-marker '.$c['office-part'].'">';
if($c['gabc'] > '') {
echo '<a href="chant.php?id='.$c['id'].'">'.$incipit."</a>";

View File

@ -6,7 +6,7 @@ function chant_from_id($c) {
$req1 = $mysqli->query($sql1) or die('Erreur SQL !<br />'.$sql1.'<br />'.$mysqli->error);
$chants = array();
$ch = $req1->fetch_assoc();
return array($ch['office-part'], $ch['incipit'], $ch['gabc'] > '', $ch['version']);
return array($ch['office-part'], $ch['incipit'] > ''?$ch['incipit']:'░░░░', $ch['gabc'] > '', $ch['version']);
}
define("HOST", ""); // The host you want to connect to.