Fixes for image generation
[shipsimu.git] / inc / database.php
index 7f9003a..03bc377 100644 (file)
@@ -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: <strong>%s</strong><br />\n",
                $e->getMessage()