Payment introduced, minor rewrites
[shipsimu.git] / inc / database.php
index f274f6c65b2a0dd8857a5e0cc0b0ff28bb073b07..52d7506032cc4ae0fdb093a9334b7ae664fe9357 100644 (file)
@@ -77,6 +77,9 @@ try {
        ));
 }
 
+// Is the app variable there and valid?
+if (is_object($app)) $app->setDatabaseInstance($db);
+
 // Datenbankobjekt debuggen
 if (defined('DEBUG_DATABASE_OBJ')) {
        DebugMiddleware::getInstance()->output(sprintf("The database sub-system does now look like this:<br />