diff -u -r1.1.2.26 avatar_selection.module
--- avatar_selection.module     11 Oct 2007 11:08:05 -0000      1.1.2.26
+++ avatar_selection.module     23 Oct 2007 13:15:13 -0000
@@ -1,5 +1,5 @@
 <?php
-// $Id: avatar_selection.module,v 1.1.2.26 2007/10/11 11:08:05 snpower Exp $
+// $Id: avatar_selection.module,v 1.1.2.20 2007/08/14 13:06:02 snpower Exp $

 /**
  * Display help and module information
@@ -169,9 +169,9 @@
     }


-    $user = drupal_anonymous_user();
+    $anon_user = drupal_anonymous_user();
     $force_choose = variable_get('avatar_selection_force_user_avatar_reg', 0);
-    $selects = _avatar_selection_image_list($pager_page_array[0], 0, $user->roles);
+    $selects = _avatar_selection_image_list($pager_page_array[0], 0, $anon_user->roles);
     $pager_total[0] = ceil($selects['total']/variable_get('avatar_selection_avatar_per_page', 30));
     if (count($selects['avatars'])) {
       drupal_add_css(drupal_get_path('module', 'avatar_selection') .'/avatar_selection.css');
