Fix psql error when accessing the project commits page.
The check is there for the pagination of the timeline. Can you just add a condition to it so it doesn't apply if $limit === false?
$limit is not false, but strtotime($limit) is, as limit is not not a string at all but just an integer (see the default value)
It is still used in the $crit->setLimit($limit); call a few lines later.