mirror of
https://github.com/moparisthebest/wallabag
synced 2024-11-23 09:32:15 -05:00
Added default statement for db system
This commit is contained in:
parent
feecea2806
commit
8af31ae0f7
@ -33,6 +33,8 @@ class Database {
|
||||
$db_path = 'pgsql:host=' . STORAGE_SERVER . ';dbname=' . STORAGE_DB;
|
||||
$this->handle = new PDO($db_path, STORAGE_USER, STORAGE_PASSWORD);
|
||||
break;
|
||||
default:
|
||||
die(STORAGE . ' is not a recognised database system !');
|
||||
}
|
||||
|
||||
$this->handle->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
|
||||
|
Loading…
Reference in New Issue
Block a user