diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2004-12-02 07:06:33 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2004-12-02 07:06:33 +0000 |
commit | b70378be0095657c1bb560d2e0d4a4c8ead369cb (patch) | |
tree | 61979aa5a35f499ecd68a7e07d659a57c007d294 /includes/pager.inc | |
parent | 925bd41585ebe0f38df01f2c32796585dbee5cf8 (diff) | |
download | brdo-b70378be0095657c1bb560d2e0d4a4c8ead369cb.tar.gz brdo-b70378be0095657c1bb560d2e0d4a4c8ead369cb.tar.bz2 |
Fix for pager_query() after #13581 (array of query arguments).
Diffstat (limited to 'includes/pager.inc')
-rw-r--r-- | includes/pager.inc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/includes/pager.inc b/includes/pager.inc index 855a913a5..d207b9356 100644 --- a/includes/pager.inc +++ b/includes/pager.inc @@ -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)) { |