aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authortcit <tcit@tcit.fr>2014-04-23 22:48:33 +0200
committertcit <tcit@tcit.fr>2014-04-23 22:48:33 +0200
commit8af31ae0f789f890517da0dbb13faa615638449b (patch)
tree8a113f36769f6fcc36384a4314d6befc77abb137
parentfeecea2806307acc79be1414048ccea11bc946ad (diff)
downloadwallabag-8af31ae0f789f890517da0dbb13faa615638449b.tar.gz
wallabag-8af31ae0f789f890517da0dbb13faa615638449b.tar.zst
wallabag-8af31ae0f789f890517da0dbb13faa615638449b.zip
Added default statement for db system
-rwxr-xr-xinc/poche/Database.class.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/inc/poche/Database.class.php b/inc/poche/Database.class.php
index ba2d1d94..141d7987 100755
--- a/inc/poche/Database.class.php
+++ b/inc/poche/Database.class.php
@@ -33,6 +33,8 @@ class Database {
33 $db_path = 'pgsql:host=' . STORAGE_SERVER . ';dbname=' . STORAGE_DB; 33 $db_path = 'pgsql:host=' . STORAGE_SERVER . ';dbname=' . STORAGE_DB;
34 $this->handle = new PDO($db_path, STORAGE_USER, STORAGE_PASSWORD); 34 $this->handle = new PDO($db_path, STORAGE_USER, STORAGE_PASSWORD);
35 break; 35 break;
36 default:
37 die(STORAGE . ' is not a recognised database system !');
36 } 38 }
37 39
38 $this->handle->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); 40 $this->handle->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);