Browse Source

Merge branch '10313' into 10400

Branche10.4
fredtempez 6 months ago
parent
commit
44c0eda419
  1. 4
      core/class/jsondb/JsonDb.class.php

4
core/class/jsondb/JsonDb.class.php

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

Loading…
Cancel
Save