From 8af31ae0f789f890517da0dbb13faa615638449b Mon Sep 17 00:00:00 2001 From: tcit Date: Wed, 23 Apr 2014 22:48:33 +0200 Subject: Added default statement for db system --- inc/poche/Database.class.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'inc/poche') 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 { $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); -- cgit v1.2.3