diff --strip-trailing-cr -d'ruNF^function' drupal-4.7.5/modules/comment.module drupal-4.7.5-comments/modules/comment.module
--- drupal-4.7.5/modules/comment.module	2007-01-03 23:56:58.000000000 +0200
+++ drupal-4.7.5-comments/modules/comment.module	2007-01-08 16:43:39.000000000 +0200
@@ -1495,6 +1495,11 @@ function theme_comment_view($comment, $l
 }
 
 function comment_controls($mode = COMMENT_MODE_THREADED_EXPANDED, $order = COMMENT_ORDER_NEWEST_FIRST, $comments_per_page = 50) {
+  global $user;
+  if ((!isset($user) || ($user->uid == 0)) && variable_get('cache', 0)) {
+    // Anonymous users can not use comment controls when cache is enabled (node/101013)
+    return '';
+  }
   $form['mode'] = array('#type' => 'select',
     '#default_value' => $mode,
     '#options' => _comment_get_modes(),
