From c54839aed513a890affe20ce5e1f7428bf535541 Mon Sep 17 00:00:00 2001 From: Olivier Berten Date: Sat, 10 Aug 2013 17:10:26 +0100 Subject: [PATCH] Fixing the edit page too --- chant_edit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++) {