]> git.agnieray.net Git - galette.git/commitdiff
No longer existing class
authorJohan Cwiklinski <johan@x-tnd.be>
Thu, 11 Jun 2020 16:44:52 +0000 (18:44 +0200)
committerJohan Cwiklinski <johan@x-tnd.be>
Thu, 11 Jun 2020 16:44:52 +0000 (18:44 +0200)
galette/lib/Galette/Repository/Members.php

index 5cafffc49da79fa2690b2bc89ae75f3b73a10f53..6f76f7355792ad4731572145093206ac421644dc 100644 (file)
@@ -412,10 +412,7 @@ class Members
                 return true;
             } catch (\Exception $e) {
                 $zdb->connection->rollBack();
-                if (
-                    $e instanceof \Zend_Db_Statement_Exception
-                    && $e->getCode() == 23000
-                ) {
+                if ($e->getCode() == 23000) {
                     Analog::log(
                         'Member still have existing dependencies in the ' .
                         'database, maybe a mailing or some content from a ' .