diff --git a/lib/copy_this/www/lib/RequestIDWeb.php b/lib/copy_this/www/lib/RequestIDWeb.php index f2b4a4c83..32da3832b 100644 --- a/lib/copy_this/www/lib/RequestIDWeb.php +++ b/lib/copy_this/www/lib/RequestIDWeb.php @@ -11,7 +11,7 @@ require_once (NN_LIB . 'RequestID.php'); */ class RequestIDWeb extends RequestID { - const MAX_WEB_LOOKUPS = 100; // Please don't exceed this, not to be to harsh on the Request id server. + const MAX_WEB_LOOKUPS = 75; // Please don't exceed this, not to be to harsh on the Request id server. /** * The id of the PRE entry the found request id belongs to. @@ -62,8 +62,8 @@ class RequestIDWeb extends RequestID $this->_request_hours, (empty($this->_groupID) ? '' : ('AND r.groupid = ' . $this->_groupID)), $this->_getReqIdGroups(), - ($this->_maxTime === '' ? '' : sprintf(' AND r.adddate > NOW() - INTERVAL %d HOUR', $this->_maxTime)), - $this->_limit + ($this->_maxTime === 0 ? '' : sprintf(' AND r.adddate > NOW() - INTERVAL %d HOUR', $this->_maxTime)), + (empty($this->_limit) || $this->_limit > 1000 ? 1000 : $this->_limit) ) ); }