From 31187ee9454944f638939eca8686b3d48f6769e6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Tue, 6 Mar 2018 22:41:42 +0100 Subject: [PATCH] Continued: - tested $applicationInstance against DatabaseConnector which will never trigger the thrown exception on double call of this method MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- framework/bootstrap/class_FrameworkBootstrap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/bootstrap/class_FrameworkBootstrap.php b/framework/bootstrap/class_FrameworkBootstrap.php index 10cfa76a..cb8aaffd 100644 --- a/framework/bootstrap/class_FrameworkBootstrap.php +++ b/framework/bootstrap/class_FrameworkBootstrap.php @@ -398,7 +398,7 @@ final class FrameworkBootstrap { $applicationInstance = ApplicationHelper::getSelfInstance(); // Is the database instance already set? - if ($applicationInstance instanceof DatabaseConnector) { + if ($applicationInstance->getDatabaseInstance() instanceof DatabaseConnector) { // Yes, then abort here throw new BadMethodCallException('Method called twice.'); } // END - if -- 2.39.5