files_lock
files_lock copied to clipboard
Potential Logic Issue in GetLocksOlderThan Methods Data Retrieval.
The GetLocksOlderThan (int $timeout) method cannot retrieve data. The 149 lines of this method are the conditions for data query, which cannot retrieve data. Because "$timeout" is the set time (in minutes), and the creation field in the files_lock data table is a unix timestamp, a 10 digit integer number$ Timeout * 60 is impossible to exceed the value of the creation field, which means that data cannot be retrieved. Is there a problem with this logic.
That looks like 27.0.x code but I am seeing this issue on 29.0.x as well.