mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2026-04-20 22:05:35 -04:00
prefer DirectoryIterator for readability, also test jbo translation, log deletion errors
This commit is contained in:
@@ -400,7 +400,9 @@ class Database extends AbstractData
|
||||
$fs = new Filesystem(array('dir' => 'data'));
|
||||
$value = $fs->getValue('salt');
|
||||
$this->setValue($value, 'salt');
|
||||
unlink($file);
|
||||
if (!unlink($file)) {
|
||||
error_log('Error deleting migrated salt: ' . $file);
|
||||
}
|
||||
return $value;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user