summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
6e908fb)
This filters out the query '-1,-1' which is being sent by some
faulty app and just takes too long to process.
$hLog = logStart($oDB, 'search', $oGeocode->getQueryString(), $aLangPrefOrder);
$hLog = logStart($oDB, 'search', $oGeocode->getQueryString(), $aLangPrefOrder);
-$aSearchResults = $oGeocode->lookup();
+// Ignore requests from a faulty app.
+if ($oGeocode->getQueryString() === '-1,-1') {
+ $aSearchResults = array();
+} else {
+ $aSearchResults = $oGeocode->lookup();
+}
logEnd($oDB, $hLog, count($aSearchResults));
logEnd($oDB, $hLog, count($aSearchResults));