Show empty incipits
This commit is contained in:
parent
b11f2fc2b8
commit
1f48b98fee
|
|
@ -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>";
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue