1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 15:25:59 +00:00

pdo: set warnings

This commit is contained in:
Andrew Dolgov
2017-12-01 16:56:15 +03:00
parent c39ee27235
commit 2e46b434da
2 changed files with 4 additions and 2 deletions

View File

@@ -31,6 +31,8 @@ class Db implements IDb {
DB_USER,
DB_PASS);
$this->pdo->setAttribute( PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING );
if (!$this->pdo) {
print("Error connecting via PDO.");
exit(101);