Fix the redirect in case the database is not found. I also handle better the case were no file are actually found. Thanks to At Libitum. fix #116

This commit is contained in:
Sébastien Lucas 2013-11-25 17:10:43 +01:00
parent 26f5b36563
commit 4d9b3a4925
3 changed files with 17 additions and 3 deletions

View file

@ -129,6 +129,7 @@ Please check
}
?>
</article>
<?php if (is_readable (Base::getDbFileName ($i))) { ?>
<article class="frontpage">
<h2>Check if Calibre database file can be opened with PHP</h2>
<h4>
@ -182,6 +183,7 @@ Please check
</h4>
</article>
<?php } ?>
<?php } ?>
<?php $i++; } ?>
</section>
<footer></footer>