From e3ce199fc2c390c44ce6fb66ad149afcbd585f07 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= <gabor@hojtsy.hu>
Date: Thu, 6 Dec 2007 10:20:07 +0000
Subject: [PATCH] #198321 by ulhume: recent security update had the arguments
 order wrong in db_query_range()

---
 modules/taxonomy/taxonomy.module | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module
index 097e7c1ffc39..4ff0697268a4 100644
--- a/modules/taxonomy/taxonomy.module
+++ b/modules/taxonomy/taxonomy.module
@@ -1100,7 +1100,7 @@ function taxonomy_select_nodes($tids = array(), $operator = 'or', $depth = 0, $p
       $result = pager_query($sql, variable_get('default_nodes_main', 10), 0, $sql_count, $args);
     }
     else {
-      $result = db_query_range($sql, 0, variable_get('feed_default_items', 10), $args);
+      $result = db_query_range($sql, $args, 0, variable_get('feed_default_items', 10));
     }
   }
 
-- 
GitLab