diff options
author | Remi Collet <remi@remirepo.net> | 2019-02-08 11:30:45 +0100 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2019-02-08 11:30:45 +0100 |
commit | 69d2e578bdae64a93ad5ea733908955bf7af50d0 (patch) | |
tree | 476bef53529812f5948eb3403a1b55da3eab764e /233.patch | |
parent | f52ff4e078c8c6b334a5418190a2ed7009664695 (diff) |
update to 1.1.6
drop patch merged upstream
Diffstat (limited to '233.patch')
-rw-r--r-- | 233.patch | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/233.patch b/233.patch deleted file mode 100644 index 04b0869..0000000 --- a/233.patch +++ /dev/null @@ -1,23 +0,0 @@ -From b2b8c62209ebe051cddeb7b8fd3963b51a81a17e Mon Sep 17 00:00:00 2001 -From: Andreas Braun <git@alcaeus.org> -Date: Sat, 7 Jul 2018 14:17:24 +0200 -Subject: [PATCH] Fix access to non-existing write results - -Fixes #231. ---- - lib/Alcaeus/MongoDbAdapter/ExceptionConverter.php | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/lib/Alcaeus/MongoDbAdapter/ExceptionConverter.php b/lib/Alcaeus/MongoDbAdapter/ExceptionConverter.php -index 8838a69..48b09de 100644 ---- a/lib/Alcaeus/MongoDbAdapter/ExceptionConverter.php -+++ b/lib/Alcaeus/MongoDbAdapter/ExceptionConverter.php -@@ -45,7 +45,7 @@ public static function toLegacy(Exception\Exception $e, $fallbackClass = 'MongoE - case Exception\WriteException::class: - $writeResult = $e->getWriteResult(); - -- if ($writeResult) { -+ if ($writeResult && $writeResult->getWriteErrors() !== []) { - $writeError = $writeResult->getWriteErrors()[0]; - - $message = $writeError->getMessage(); |