Fossil

Diff
Login

Diff

Differences From Artifact [49100c83b1]:

To Artifact [77f07c8fbd]:


30
31
32
33
34
35
36
37
38


39
40
41
42
43
44
45
30
31
32
33
34
35
36


37
38
39
40
41
42
43
44
45







-
-
+
+







/*
** Determine if an autosync should be done or not. The config setting,
** autosync must start with 1, y or Y. The last-sync-url must also be
** defined.
*/
int do_autosync(void){
  const char *zAutoSync = db_global_get("autosync", 0);
  if( zAutoSync != 0 
      && (zAutoSync[0]=='1' || zAutoSync[0]=='y' || zAutoSync=='Y') 
  if( zAutoSync!=0
      && (zAutoSync[0]=='1' || zAutoSync[0]=='y' || zAutoSync[0]=='Y') 
      && db_get("last-sync-url", 0)!=0 ){
    return 1;
  }else{
    return 0;
  }
}