X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fdatabase.php;h=03bc377ac5d781427711d319ddd2a873b9f8202a;hb=4392fbc6c1c211896c93020bd64201326211b8bc;hp=7f9003a897139e76bd3ff8f31c72c1243702b8f6;hpb=a2cc983f5fe910115d25800c258875a3919fb143;p=shipsimu.git
diff --git a/inc/database.php b/inc/database.php
index 7f9003a..03bc377 100644
--- a/inc/database.php
+++ b/inc/database.php
@@ -23,7 +23,7 @@
*/
// Initialize layer
-$layer = null;
+$layerInstance = null;
// Get config instance
$cfg = FrameworkConfiguration::getInstance();
@@ -51,7 +51,7 @@ unset($INC);
// Prepare database instance
try {
- $db = DatabaseConnection::createDatabaseConnection(DebugMiddleware::getInstance(), $layer);
+ $db = DatabaseConnection::createDatabaseConnection(DebugMiddleware::getInstance(), $layerInstance);
} catch (NullPointerException $e) {
ApplicationEntryPoint::app_die(sprintf("[Main:] Database sub-system not initialized for the follwing reason: %s
\n",
$e->getMessage()