Merge remote-tracking branch 'origin/master'

This commit is contained in:
Madpwnhammer 2023-09-25 16:55:40 +03:00
commit b9b5cbe136
2 changed files with 4 additions and 3 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
tags

View File

@ -63,9 +63,9 @@ function flt_time($val, $name, $struct, $args)
if(!preg_match($reg, $val, $matches))
throw new Exception("Bad value, pattern 00:00:00");
$h = $matches[1];
$m = $matches[2];
$s = $matches[3];
$h = intval($matches[1]);
$m = intval($matches[2]);
$s = intval($matches[3]);
return $h * 3600 + $m * 60 + $s;
}