Invalid argument supplied for foreach() in sites/all/modules/omniture/omniture.module on line 57

greggles - November 10, 2009 - 19:09
Project:Omniture Integration
Version:6.x-2.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs review
Description

I guess there are situations where a $user object has no roles and we should be protective against that.

#1

greggles - November 10, 2009 - 22:27
Status:active» needs review

This is kind of crazy, I feel like we should always have either auth or anon. I think it might be happening because in this particular case omniture is being called for a page that executes very little of the Drupal boostrap. I'm not entirely sure whether its worth us protecting against that.

AttachmentSize
628982_real_roles.patch 885 bytes
 
 

Drupal is a registered trademark of Dries Buytaert.