Index: node_browser.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/node_browser/node_browser.module,v
retrieving revision 1.7
diff -u -r1.7 node_browser.module
--- node_browser.module	3 Dec 2006 14:28:33 -0000	1.7
+++ node_browser.module	3 May 2010 11:51:38 -0000
@@ -153,24 +153,13 @@
       for ($i = 65;$i <= 90;$i++) {
         $output .= l(chr($i), 'node_browser/nodes_by_title/start_char/' . urlencode(chr($i))) . '&nbsp;' . "\n";
       }
-      for ($i = 48;$i <= 57;$i++) {
-        $output .= l(chr($i), 'node_browser/nodes_by_title/start_char/' . urlencode(chr($i))) . '&nbsp;' . "\n";
-      }
+     
       $output .= '</p>';
       $output .= '<p>';
-      $output .= l('Space', 'node_browser/nodes_by_title/start_char/' .urlencode(chr(32))) . '&nbsp;' . "\n";
-      for ($i = 33;$i <= 47;$i++) {
-        $output .= l(chr($i), 'node_browser/nodes_by_title/start_char/' .urlencode(chr($i))) . '&nbsp;' . "\n";
-      }
-      for ($i = 58;$i <= 64;$i++) {
-        $output .= l(chr($i), 'node_browser/nodes_by_title/start_char/' .urlencode(chr($i))) . '&nbsp;' . "\n";
-      }
-      for ($i = 91;$i <= 96;$i++) {
-        $output .= l(chr($i), 'node_browser/nodes_by_title/start_char/' .urlencode(chr($i))) . '&nbsp;' . "\n";
-      }
-      for ($i = 123;$i <= 126;$i++) {
-        $output .= l(chr($i), 'node_browser/nodes_by_title/start_char/' .urlencode(chr($i))) . '&nbsp;' . "\n";
+   for ($i = 48;$i <= 57;$i++) {
+        $output .= l(chr($i), 'node_browser/nodes_by_title/start_char/' . urlencode(chr($i))) . '&nbsp;' . "\n";
       }
+      
       $output .= '</p>';
       print theme("page", $output);
       return;
@@ -270,8 +259,7 @@
     $result = pager_query(db_rewrite_sql($sql));
   }
   elseif (arg(1) == 'nodes_by_title' and arg(2) == 'start_char' and arg(3)>'') {
-    $sql = "SELECT n.* FROM {node} n WHERE (SUBSTRING(n.title, 1, 1) = '%s' OR SUBSTRING(n.title, 1, 1) = '%s') ORDER BY n.title, n.sticky DESC , n.created DESC";
-    $result = db_query($sql, array(arg(3), strtolower(urldecode(arg(3)))), 20);
+    $result = db_query("SELECT n.* FROM {node} n WHERE (SUBSTRING(n.title, 1, 1) = '%s' OR SUBSTRING(n.title, 1, 1) = '%s') ORDER BY n.title, n.sticky DESC , n.created DESC", array(arg(3), strtolower(urldecode(arg(3)))));
   }
   elseif (arg(1) == 'nodes_by_title') {
     $sql = "SELECT n.* FROM {node} n ORDER BY n.title, n.sticky DESC , n.created DESC";
@@ -286,8 +274,7 @@
     $result = pager_query(db_rewrite_sql($sql), 20);
   }
   else {
-    $sql = "SELECT a.* FROM (SELECT n.*, r.tid FROM {node} n LEFT JOIN {term_node} r ON r.nid = n.nid) a WHERE a.tid = %d ORDER BY a.sticky DESC, a.title ASC";
-    $result = db_query($sql, array($term->tid), 20);
+    $result = db_query("SELECT a.* FROM (SELECT n.*, r.tid FROM {node} n LEFT JOIN {term_node} r ON r.nid = n.nid) a WHERE a.tid = %d ORDER BY a.sticky DESC, a.title ASC", $term->tid);
   }  
   if (db_num_rows($result)) {
     $output .= "<ul>\n";                

