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:
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user