fix missing typecast to int

in managetimetracker, causing a possible sql vulnerability.