getParam($this->getRequestParam()); if ($time === -1) { return false; } if ($time < 0) { throw new InvalidRequestParameterException(sprintf('Value for %1$s can\'t be negative.', $this->getRequestParam())); } // ignore values that are too high to be stored in column (unsigned mediumint) // refs https://github.com/matomo-org/matomo/issues/17035 if ($time > 16777215) { return false; } return $time; } }