? sections_name.patch
Index: sections.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/sections/sections.module,v
retrieving revision 1.16.2.8
diff -u -p -r1.16.2.8 sections.module
--- sections.module	13 Oct 2007 20:47:24 -0000	1.16.2.8
+++ sections.module	27 Feb 2008 22:58:25 -0000
@@ -330,7 +330,7 @@ function sections_in_section($section = 
   }
   else {
     // caller wants to know in which section she is.
-    $res = db_query("SELECT path, status, visibility, theme, weight FROM {sections_data} WHERE status=1 ORDER BY weight");
+    $res = db_query("SELECT sid, name, path, status, visibility, theme, weight FROM {sections_data} WHERE status=1 ORDER BY weight");
     while ($row = db_fetch_object($res)) {
       if ($row->visibility == 1) {
         // This bizarre bit of magic courtesy of block.module
