Commit 7dcb9086 authored by Dries's avatar Dries

- Patch #23465 by Gerhard: tiny performance improvement to db_query_range().

parent fc1f1e94
......@@ -198,7 +198,7 @@ function db_query_range($query) {
$from = array_pop($args);
$query = db_prefix_tables($query);
if (count(func_get_args()) > 3) {
if (count($args) > 1) {
// Check for array (alternative syntax).
if (is_array($args[1])) {
$args = array_merge(array($query), $args[1]);
......
......@@ -185,7 +185,7 @@ function db_query_range($query) {
$from = array_pop($args);
$query = db_prefix_tables($query);
if (count(func_get_args()) > 3) {
if (count($args) > 1) {
// Check for array (alternative syntax).
if (is_array($args[1])) {
$args = array_merge(array($query), $args[1]);
......
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