[AppDB] Fix database error page

Rosanne DiMesio dimesio at earthlink.net
Wed May 31 08:54:21 CDT 2017


The page was showing a redeclare error for the sidebars
instead of the database error that triggered it.

Signed-off-by: Rosanne DiMesio <dimesio at earthlink.net>
---
 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 ";
-- 
2.12.0




More information about the wine-patches mailing list