summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2011-07-24 17:11:04 -0700
committerTim Almdal <tnalmdal@shaw.ca>2011-07-24 17:11:04 -0700
commitde1b4082cd99337242287889e56edc15a9fe9cda (patch)
tree2c3d8da657a62dde13e01d116e00c1ba13344a5f
parent4d7105d89ee286698d2f20e9261d21c6626984d3 (diff)
Patch for ticket #1763. Where offset could be converted to a null string. It's not really a problem in the current release, but will cause isses when we serialize the offset as part of the display context.
-rw-r--r--modules/search/helpers/search.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/search/helpers/search.php b/modules/search/helpers/search.php
index bbde8feb..a3fd795a 100644
--- a/modules/search/helpers/search.php
+++ b/modules/search/helpers/search.php
@@ -54,7 +54,7 @@ class search_Core {
"WHERE MATCH({search_records}.`data`) AGAINST ('$q' IN BOOLEAN MODE) " .
$access_sql .
"ORDER BY `score` DESC " .
- "LIMIT $limit OFFSET $offset";
+ "LIMIT $limit OFFSET " . (int)$offset;
$data = $db->query($query);
$count = $db->query("SELECT FOUND_ROWS() as c")->current()->c;