- Patch #23465 by Gerhard: tiny performance improvement to db_query_range().
parent
fc1f1e94a5
commit
7dcb9086f8
|
|
@ -198,7 +198,7 @@ function db_query_range($query) {
|
||||||
$from = array_pop($args);
|
$from = array_pop($args);
|
||||||
|
|
||||||
$query = db_prefix_tables($query);
|
$query = db_prefix_tables($query);
|
||||||
if (count(func_get_args()) > 3) {
|
if (count($args) > 1) {
|
||||||
// Check for array (alternative syntax).
|
// Check for array (alternative syntax).
|
||||||
if (is_array($args[1])) {
|
if (is_array($args[1])) {
|
||||||
$args = array_merge(array($query), $args[1]);
|
$args = array_merge(array($query), $args[1]);
|
||||||
|
|
|
||||||
|
|
@ -185,7 +185,7 @@ function db_query_range($query) {
|
||||||
$from = array_pop($args);
|
$from = array_pop($args);
|
||||||
|
|
||||||
$query = db_prefix_tables($query);
|
$query = db_prefix_tables($query);
|
||||||
if (count(func_get_args()) > 3) {
|
if (count($args) > 1) {
|
||||||
// Check for array (alternative syntax).
|
// Check for array (alternative syntax).
|
||||||
if (is_array($args[1])) {
|
if (is_array($args[1])) {
|
||||||
$args = array_merge(array($query), $args[1]);
|
$args = array_merge(array($query), $args[1]);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue