mirror of
https://github.com/silverstripe/silverstripe-sqlite3
synced 2024-10-22 15:05:37 +00:00
MINOR Fixing undefined variable
This commit is contained in:
parent
bac4aac13f
commit
9dfebd8732
@ -29,11 +29,12 @@ class SQLiteDatabaseConfigurationHelper implements DatabaseConfigurationHelper {
|
||||
*/
|
||||
public function requireDatabaseServer($databaseConfig) {
|
||||
$path = $databaseConfig['path'];
|
||||
|
||||
$error = '';
|
||||
|
||||
if(!$path) {
|
||||
$success = false;
|
||||
$error = 'No database path provided';
|
||||
}
|
||||
}
|
||||
// check if parent folder is writeable
|
||||
elseif(is_writable(dirname($path))) {
|
||||
$success = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user