diff --git a/og_moderation.module b/og_moderation.module
index 4be2400..ca0d2ed 100644
--- a/docroot/og_moderation.module
+++ b/docroot/og_moderation.module
@@ -73,9 +73,9 @@ function og_moderation_node_grants($account, $op) {
   if ($op == 'view' && $gids = og_get_entity_groups('user', $account)) {
     $types = (empty($types) || $reset == TRUE) ? node_permissions_get_configured_types() : $types;
     foreach($types as $type) {
-      foreach ($gids['node'] as $id => $gid) {
+      foreach ($gids['node'] as $gid) {
         if (og_user_access('node', $gid, "view any unpublished $type content")) {
-          $grants['og_view_any_unpublished_' . $type . '_content'][] = array($gid);
+          $grants['og_view_any_unpublished_' . $type . '_content'][] = $gid;
         }
       }
     }
