Skip to content
Snippets Groups Projects
Commit abaa1ce5 authored by Demian Katz's avatar Demian Katz
Browse files

Smarter check to avoid notice.

parent e3d44437
No related merge requests found
......@@ -203,7 +203,9 @@ class ResultScroller extends AbstractPlugin
// if there is something on the next page, then the next
// record is the first record on the next page
if (!empty($this->data->nextIds)) {
if (is_array($this->data->nextIds)
&& count($this->data->nextIds) > 0
) {
$retVal['nextRecord'] = $this->data->nextIds[0];
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment