Modified: trunk/htdocs/system/schema/sqlite/connection.php (3823 => 3824)
--- trunk/htdocs/system/schema/sqlite/connection.php 2009-11-24 13:04:27 UTC (rev 3823)
+++ trunk/htdocs/system/schema/sqlite/connection.php 2009-11-24 14:37:44 UTC (rev 3824)
@@ -65,8 +65,8 @@
}
$connect_string = implode( ':', array( $type, $file ) );
}
- if (!is_writable($file)) {
- die(_t('Database file must be writable.'));
+ if ( file_exists( $file ) && !is_writable( $file ) ) {
+ die( _t( 'Database file must be writable.' ) );
}
$conn = parent::connect( $connect_string, $db_user, $db_pass );
$this->exec( 'PRAGMA synchronous = OFF' );