From: Joshua Rüsweg Date: Tue, 24 Dec 2019 12:41:04 +0000 (+0100) Subject: Throw an exception, if Query in ReactionHandler failed X-Git-Tag: 5.2.0~18^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ef04511f5117df63ab360bac98c1c2c2c1e02c38;p=GitHub%2FWoltLab%2FWCF.git Throw an exception, if Query in ReactionHandler failed --- 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'); } /**