MINOR Fixing undefined variable

This commit is contained in:
Sean Harvey 2012-04-30 11:18:52 +12:00
parent bac4aac13f
commit 9dfebd8732

View File

@ -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;