diff --git a/dblayer.php b/dblayer.php index 020a486..51ef26b 100644 --- a/dblayer.php +++ b/dblayer.php @@ -101,6 +101,9 @@ class dblayer if (! isset ($driver[0])) throw new Exception (dgettext("domframework", "No valid DSN provided"), 500); + if (! in_array ($driver[0], pdo_drivers ())) + throw new \Exception (dgettext("domframework", + "Driver PDO not available in PHP"), 500); // Force specifics initialisations $this->dsn = $dsn; switch ($driver[0])