]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Added default statement for db system
authortcit <tcit@tcit.fr>
Wed, 23 Apr 2014 20:48:33 +0000 (22:48 +0200)
committertcit <tcit@tcit.fr>
Wed, 23 Apr 2014 20:48:33 +0000 (22:48 +0200)
inc/poche/Database.class.php

index ba2d1d9438565b194914d216a120dd0fae7c2617..141d798757001f280dc28e9612a0eb1f708f741c 100755 (executable)
@@ -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);