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
This commit is contained in:
2015-03-23 13:02:58 +00:00
parent 07d0707445
commit d0dfe2dba1

View File

@@ -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"),