Browse Source

eviter un warning la premiere fois

master
cedric@yterium.com 2 years ago
parent
commit
f38faa8e03
  1. 3
      inc_outils.php

3
inc_outils.php

@ -275,7 +275,8 @@ function dirschanged_filename($dir_repo) {
function dirschanged_read($dir_repo, $since = null) {
$file = dirschanged_filename($dir_repo);
if (!$changed = file_get_contents($file)
if (!file_exists($file)
or !$changed = file_get_contents($file)
or !$dirs_changed = json_decode($changed, true)) {
$dirs_changed = array();
}

Loading…
Cancel
Save