Fix failing web requestid lookup.

This commit is contained in:
DariusIII
2015-04-16 23:53:18 +02:00
parent f1c2009764
commit 64d378a27c
+3 -3
View File
@@ -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)
)
);
}