PHP notices on user/* when user has nothing in their activity stream

eojthebrave - July 26, 2008 - 20:13
Project:Activity Stream
Version:6.x-2.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:akalsey
Status:closed
Description

notice: Undefined variable: items in /public_html/sites/all/modules/activitystream/activitystream.module on line 270.

When viewing user/* when activity stream has no activities to show the $items array is never created. Patch initializes the $items array regardless of wether or not it has content.

Let me know if it's easier for me to just roll all of these fixes into one patch.

AttachmentSize
actvitystream-php_notices_no_items.patch719 bytes

#1

akalsey - July 31, 2008 - 02:41
Assigned to:Anonymous» akalsey
Status:patch (code needs review)» patch (reviewed & tested by the community)

Patch ported to 5.x and commited

#2

akalsey - July 31, 2008 - 16:55
Status:patch (reviewed & tested by the community)» fixed

Applied to 6.x

#3

akalsey - July 31, 2008 - 17:33
Status:fixed» closed
 
 

Drupal is a registered trademark of Dries Buytaert.