Merge branch '10400' into editeur

This commit is contained in:
fredtempez 2020-12-27 10:15:03 +01:00
commit a326c6e81c
1 changed files with 4 additions and 0 deletions

View File

@ -127,6 +127,10 @@ class JsonDb extends \Prowebcraft\Dot
* Saving to local database
*/
public function save() {
// Fichier inexistant, le créer
if ( !file_exists($this->db) ) {
touch($this->db);
}
// Backup file
if ($this->config['backup']) {
copy ($this->db, $this->db . '.back');