| changeset 20 | a9b98b16b053 |
| parent 19 | eadaf0b8f02e |
| child 22 | a50cbd7d702f |
--- a/server/src/app/Repositories/RdfDocumentRepository.php Fri Nov 27 17:59:36 2015 +0100 +++ b/server/src/app/Repositories/RdfDocumentRepository.php Tue Dec 01 13:33:08 2015 +0100 @@ -134,12 +134,12 @@ $page = Paginator::resolveCurrentPage($pageName); - assert(is_numeric($page)); + assert(is_null($page) || is_numeric($page)); $total = $this->getCount(); $offset = max(0,($page - 1) * $perPage); - + $query = "SELECT DISTINCT ?uri ?doc ?title ?issued ?modified". " WHERE {".