Index: omniture.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/omniture/omniture.module,v retrieving revision 1.6.4.3 diff -u -p -r1.6.4.3 omniture.module --- omniture.module 23 Sep 2009 23:18:18 -0000 1.6.4.3 +++ omniture.module 10 Nov 2009 22:26:52 -0000 @@ -50,9 +50,11 @@ function omniture_footer($main = 0) { // Check if we should track the currently active user's role $track = 0; - foreach ($user->roles as $role) { - $role = str_replace(' ', '_', $role); - $track += variable_get("omniture_track_{$role}", FALSE); + if (is_array($user->roles)) { + foreach ($user->roles as $role) { + $role = str_replace(' ', '_', $role); + $track += variable_get("omniture_track_{$role}", FALSE); + } } // Don't track page views in the admin sections, or for certain roles