Commit b70378be authored by Steven Wittens's avatar Steven Wittens

Fix for pager_query() after #13581 (array of query arguments).

parent 925bd415
......@@ -55,6 +55,10 @@ function pager_query($query, $limit = 10, $element = 0, $count_query = NULL) {
// Substitute in query arguments.
$args = func_get_args();
$args = array_slice($args, 4);
// Alternative syntax for '...'
if (is_array($args[0])) {
$args = $args[0];
}
// Count the total number of records in this query.
if (!isset($count_query)) {
......
Markdown is supported
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