From ef04511f5117df63ab360bac98c1c2c2c1e02c38 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Joshua=20R=C3=BCsweg?= Date: Tue, 24 Dec 2019 13:41:04 +0100 Subject: [PATCH] Throw an exception, if Query in ReactionHandler failed --- .../files/lib/system/reaction/ReactionHandler.class.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/wcfsetup/install/files/lib/system/reaction/ReactionHandler.class.php b/wcfsetup/install/files/lib/system/reaction/ReactionHandler.class.php index 355f2df153..0a71af9f75 100644 --- a/wcfsetup/install/files/lib/system/reaction/ReactionHandler.class.php +++ b/wcfsetup/install/files/lib/system/reaction/ReactionHandler.class.php @@ -380,11 +380,12 @@ class ReactionHandler extends SingletonFactory { } catch (DatabaseQueryException $e) { WCF::getDB()->rollBackTransaction(); + + throw $e; } - return [ - 'cachedReactions' => [], - ]; + /** @noinspection PhpUnreachableStatementInspection */ + throw new \LogicException('Unreachable'); } /** -- 2.20.1