diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2011-07-24 17:11:04 -0700 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2011-07-24 17:11:04 -0700 |
commit | de1b4082cd99337242287889e56edc15a9fe9cda (patch) | |
tree | 2c3d8da657a62dde13e01d116e00c1ba13344a5f /modules/search/helpers | |
parent | 4d7105d89ee286698d2f20e9261d21c6626984d3 (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.
Diffstat (limited to 'modules/search/helpers')
-rw-r--r-- | modules/search/helpers/search.php | 2 |
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; |