take 2, a=chris

Chris Pollett [2013-01-01 00:Jan:st]
take 2, a=chris
Filename
lib/index_bundle_iterators/group_iterator.php
diff --git a/lib/index_bundle_iterators/group_iterator.php b/lib/index_bundle_iterators/group_iterator.php
index f1baada2a..0634b43c7 100644
--- a/lib/index_bundle_iterators/group_iterator.php
+++ b/lib/index_bundle_iterators/group_iterator.php
@@ -146,7 +146,7 @@ class GroupIterator extends IndexBundleIterator
      *      queue_server setting, then this is the id of the current
      *      queue_server
      * @param bool $network_flag the iterator is being used for a network query
-     * @param bool $groups_with_docswhether to return only groups that
+     * @param bool $groups_with_docs whether to return only groups that
      *      contain at least one doc as opposed to a groups with only links
      */
     function __construct($index_bundle_iterator, $num_iterators = 1,
@@ -488,7 +488,7 @@ class GroupIterator extends IndexBundleIterator
         if($this->groups_with_docs) {
             foreach($out_pages as $hash_url => $info) {
                 if(!$out_pages[$hash_url][self::IS_DOC]) {
-                    unset($out_pages[$hash_url][self::IS_DOC]);
+                    unset($out_pages[$hash_url]);
                 }
             }
         }
ViewGit