Module: appdb Branch: master Commit: 55b9d8612f1260a1378525f61b07f9fe18614a32 URL: http://source.winehq.org/git/appdb.git/?a=commit;h=55b9d8612f1260a1378525f61...
Author: Rosanne DiMesio dimesio@earthlink.net Date: Wed May 31 08:54:21 2017 -0500
Fix database error page
The page was showing a redeclare error for the sidebars instead of the database error that triggered it.
Signed-off-by: Rosanne DiMesio dimesio@earthlink.net Signed-off-by: Jeremy Newman jnewman@codeweavers.com
---
include/appdb.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/appdb.php b/include/appdb.php index 4130bb0..72de1a9 100644 --- a/include/appdb.php +++ b/include/appdb.php @@ -179,7 +179,7 @@ function appdb_error_handler($errno, $errstr, $errfile, $errline, $errcontext = // display error page and exit appdb_clear_buffer(); header("HTTP/1.1 500 Internal Server Error"); - include(BASE."include/header.php"); + include_once(BASE."include/header.php"); echo "<h1>Ooops! Something has gone terribly wrong!</h1>\n"; echo "<p>Our monkey train has derailed! Worry not, a webmaster gopher help army has been dispatched and is on the way.</p>"; echo "<p>If this error continues to be a problem, please report it to us on our ";