Index: nodelimit.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/nodelimit/nodelimit.module,v
retrieving revision 1.4
diff -u -r1.4 nodelimit.module
--- nodelimit.module	9 Oct 2006 20:11:36 -0000	1.4
+++ nodelimit.module	29 Oct 2006 13:17:49 -0000
@@ -228,6 +228,9 @@
     $uid = $user->uid;
   }
 
+  // Exception for superuser
+  if ($uid == 1) return;
+  
   $query = "SELECT max(nl.maxnodes) as maxnodes, min(nl.maxnodes) as minnodes FROM {nodelimit_types} nl JOIN users_roles ur WHERE (nl.role=ur.rid OR nl.role=2) AND ur.uid=%d AND nl.nodetype='%s'";
   $max = db_fetch_object(db_query($query, $uid, $type));
   if (!$max->maxnodes or !$max->minnodes) {
