From 86c11cb357e554ee83c152b5aadf749291f84463 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 6 Jul 2022 15:48:17 +0200 Subject: [PATCH] Fix phpunit --- htdocs/core/db/mysqli.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/htdocs/core/db/mysqli.class.php b/htdocs/core/db/mysqli.class.php index 593a9454b6f..0074e2d910e 100644 --- a/htdocs/core/db/mysqli.class.php +++ b/htdocs/core/db/mysqli.class.php @@ -208,6 +208,7 @@ class DoliDBMysqli extends DoliDB try { $result = $this->db->select_db($database); } catch (Exception $e) { + // Nothing done on error } return $result; }