From a406f9f7dece32ee1b376285773a9e17b5de6342 Mon Sep 17 00:00:00 2001 From: Lucas Bartholemy Date: Tue, 24 Sep 2019 13:18:11 +0200 Subject: [PATCH] Fix #3512: Broken error handling if SQL mode cannot be switched --- protected/humhub/docs/CHANGELOG.md | 1 + protected/humhub/libs/Helpers.php | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/protected/humhub/docs/CHANGELOG.md b/protected/humhub/docs/CHANGELOG.md index d9fb1b0911..c094dca5dc 100644 --- a/protected/humhub/docs/CHANGELOG.md +++ b/protected/humhub/docs/CHANGELOG.md @@ -8,6 +8,7 @@ HumHub Change Log - Fix #3647: GroupID field is not translatable in Registration Form - Fix #3655: Fix CommentLink widget Comment class usage conflict - Fix #3638: Update Notification Causes System Warning +- Fix #3512: Broken error handling if SQL mode cannot be switched 1.3.15 (August 22, 2019) diff --git a/protected/humhub/libs/Helpers.php b/protected/humhub/libs/Helpers.php index 357d1d6de0..0568a287b5 100644 --- a/protected/humhub/libs/Helpers.php +++ b/protected/humhub/libs/Helpers.php @@ -8,6 +8,7 @@ namespace humhub\libs; +use Yii; use yii\base\InvalidArgumentException; use yii\base\Exception; @@ -248,7 +249,7 @@ class Helpers * should be configured in dynamic.php like this: 'on afterOpen' => ['humhub\libs\Helpers', 'SqlMode'], * * This is mainly required for grouped notifications. - * + * * @since 1.2.1 * @param $event */