Explorar o código

changed excludes

root hai 1 ano
pai
achega
3311c4035c
Modificáronse 2 ficheiros con 3 adicións e 1 borrados
  1. 2 0
      .gitignore
  2. 1 1
      scripts/eyelib/database.pm

+ 2 - 0
.gitignore

@@ -5,3 +5,5 @@
 /html/js/jstree/
 /html/js/select2/
 /.vscode/
+/html/log/*.log
+/html/sessions/sess_*

+ 1 - 1
scripts/eyelib/database.pm

@@ -1911,7 +1911,7 @@ my $value = shift || $$;
 my $timeshift = shift || 60;
 
 Del_Variable($db,$name);
-my $clean_variables = time() + $timeshift;
+my $clean_variables = time() + $timeshift*60;
 my $clean_str=GetTimeStrByUnixTime($clean_variables);
 my $clean_variables_date=$db->quote($clean_str);
 do_sql($db,"INSERT INTO variables(name,value,clear_time) VALUES('".$name."','".$value."',".$clean_variables_date.");");