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:
parent
26f5b36563
commit
4d9b3a4925
3 changed files with 17 additions and 3 deletions
|
@ -23,6 +23,10 @@
|
|||
exit ();
|
||||
}
|
||||
|
||||
// Access the database ASAP to be sure it's readable, redirect if that's not the case.
|
||||
// It has to be done before any header is sent.
|
||||
$test = Base::getDb ();
|
||||
|
||||
header ("Content-Type:text/html;charset=utf-8");
|
||||
$page = getURLParam ("page", Base::PAGE_INDEX);
|
||||
$query = getURLParam ("query");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue