mirror of
https://github.com/silverstripe/silverstripe-sqlite3
synced 2024-09-28 04:15:58 +02: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) {
|
public function requireDatabaseServer($databaseConfig) {
|
||||||
$path = $databaseConfig['path'];
|
$path = $databaseConfig['path'];
|
||||||
|
$error = '';
|
||||||
|
|
||||||
if(!$path) {
|
if(!$path) {
|
||||||
$success = false;
|
$success = false;
|
||||||
$error = 'No database path provided';
|
$error = 'No database path provided';
|
||||||
}
|
}
|
||||||
// check if parent folder is writeable
|
// check if parent folder is writeable
|
||||||
elseif(is_writable(dirname($path))) {
|
elseif(is_writable(dirname($path))) {
|
||||||
$success = true;
|
$success = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user