X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FDatabase%2FDatabase.php;h=f478d7993a1844dfac0f49c76da20f1c6bcef8a3;hb=948405a48631c1c7cce23112e293128c4dad7e18;hp=cc7f754ee6fda19e9f15f39b07386b7729a8f16d;hpb=7206a0a351bd1815f1c8df9ddad30a11c95e6e87;p=friendica.git diff --git a/src/Database/Database.php b/src/Database/Database.php index cc7f754ee6..f478d7993a 100644 --- a/src/Database/Database.php +++ b/src/Database/Database.php @@ -138,6 +138,7 @@ class Database try { $this->connection = @new PDO($connect, $user, $pass, [PDO::ATTR_PERSISTENT => $persistent]); $this->connection->setAttribute(PDO::ATTR_EMULATE_PREPARES, $this->pdo_emulate_prepares); + $this->connection->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_SILENT); $this->connected = true; } catch (PDOException $e) { $this->connected = false;