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:closed
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

#2

cytefx - February 11, 2010 - 11:12
Status:needs review» reviewed & tested by the community

Reviewwed the fix and will commit the change shortly.

#3

cytefx - February 18, 2010 - 16:25
Status:reviewed & tested by the community» fixed

#4

System Message - March 4, 2010 - 16:30
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.