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

4.7.x
Dries Buytaert 2005-05-23 21:14:01 +00:00
parent fc1f1e94a5
commit 7dcb9086f8
2 changed files with 2 additions and 2 deletions

View File

@ -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]);

View File

@ -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]);