Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
drupal
Commits
cbf3f21e
Commit
cbf3f21e
authored
Dec 04, 2004
by
Dries
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Patch by Steven: fixed bug in pager_query().
parent
63f25211
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
includes/pager.inc
includes/pager.inc
+7
-2
No files found.
includes/pager.inc
View file @
cbf3f21e
...
...
@@ -69,7 +69,12 @@ function pager_query($query, $limit = 10, $element = 0, $count_query = NULL) {
// Convert comma-separated $from to an array, used by other functions.
$pager_from_array
=
explode
(
','
,
$from
);
return
db_query_range
(
$query
,
$args
,
(
int
)
$pager_from_array
[
$element
],
(
int
)
$limit
);
if
(
count
(
$args
))
{
return
db_query_range
(
$query
,
$args
,
(
int
)
$pager_from_array
[
$element
],
(
int
)
$limit
);
}
else
{
return
db_query_range
(
$query
,
(
int
)
$pager_from_array
[
$element
],
(
int
)
$limit
);
}
}
/**
...
...
@@ -375,4 +380,4 @@ function pager_load_array($value, $element, $old_array) {
return
$new_array
;
}
?>
\ No newline at end of file
?>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment