Index: cache_updater.php =================================================================== --- cache_updater.php (revision 12940) +++ cache_updater.php (working copy) @@ -392,7 +392,10 @@ $next_data['template'] = $data['template']; $next_data['item_template'] = $data['item_template']; $next_data['current_id'] = $data['children'][ $data['current_child'] ]; //next iteration should process child - $next_data['perms'] = $data['perms']; //we should copy our permissions to child - inheritance + + // TODO: use "clone" when on PHP5 + $next_data['perms'] = unserialize( serialize($data['perms']) ); // we should copy our permissions to child - inheritance + $next_data['perms']->SetCatId($next_data['current_id']); $next_data['left'] = $data['right']; $data['current_child']++;