--- nodeaccess.module.orig	2008-11-17 11:56:27.000000000 -0600
+++ nodeaccess.module	2008-11-17 11:56:27.000000000 -0600
@@ -435,7 +435,8 @@ function nodeaccess_grants_form_submit($
 
   foreach (array('uid', 'rid') as $type) {
     $realm = 'nodeaccess_' . $type;
-    if (is_array($form_values[$type])) {
+    if (is_array($form_values[$type]) && count($form_values[$type]) > 0) {
+
       foreach ($form_values[$type] as $gid => $line) {
         $grant = array(
           'gid' => $gid,
@@ -449,6 +450,12 @@ function nodeaccess_grants_form_submit($
         }
       }
     }
+    else {
+      // No values were passed, so use the defaults
+      $node   = node_load($node->nid);
+      $grants = variable_get('nodeaccess_' . $node->type, array());
+    }
+
     node_access_write_grants($node, $grants, $realm);
   }
 
