From d0dfe2dba187b67cf7f988e8bbddb2f878864f20 Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Mon, 23 Mar 2015 13:02:58 +0000 Subject: [PATCH] dblayer : correct the test of write access to sqlite git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2056 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- dblayer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dblayer.php b/dblayer.php index f7f9073..d63cac3 100644 --- a/dblayer.php +++ b/dblayer.php @@ -103,7 +103,7 @@ class dblayer extends PDO { case "sqlite": // Look at the right to write in database and in the directory - $file = substr ($dsn, 9); + $file = substr ($dsn, 7); if (! is_writeable (dirname ($file))) throw new Exception (dgettext("domframework", "The directory for SQLite database is write protected"),