diff --git a/chant_edit.php b/chant_edit.php index 2f3b60e..902fe15 100644 --- a/chant_edit.php +++ b/chant_edit.php @@ -337,7 +337,7 @@ if(!$logged_in) { echo '
'; foreach ($c_s as $s) { - if(is_dir('./sources/'.$s['source'])) { + if(is_dir('./sources/'.$s['source']) && !(is_array($sources[$s['source']]['pages']) && !in_array($s['page'],$sources[$s['source']]['pages']))) { $source_label = "".$sources[$s['source']]['title'].", ".$sources[$s['source']]['editor'].", ".$sources[$s['source']]['year']."".($s['page']>''?", p. ".$s['page']:''); echo ''.$source_label."
\n";
for($i = 0; $i < max(1,$s['extent']); $i++) {