Closed (fixed)
Project:
Buddylist2
Version:
5.x-1.0-beta1
Component:
Buddylist UI
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
29 Jun 2008 at 16:48 UTC
Updated:
1 Aug 2008 at 14:32 UTC
I was given a snippet in this thread: #226423: PHP snippets that worked with BL don't seem to with BL2
but the "WHERE received=0" is breaking it. Why should that be in there? All my buddylist entries in the buddylist table in my DB have "received=1". I looked through the code and there seems to be something about integration with privatemsg module.
I am heavily using tpl templates so don't get to see the default user/x page - maybe some "accept" link is put onto that page which turns 1 to 0 in the "received" column.
Comments
Comment #1
crizI had a quick look and I also think that "WHERE received=0" isn't right. Why don't you use a snippet like the following (not tested, but this would be more future proof I think). By the way buddy_api_get_buddies() is not using this received-column too...
Comment #2
nodestroy commentedprimary this column is in buddylist2 because it was in buddylist (db backward compatibility)
in buddylist table, all entries should have received = 1
Comment #3
nodestroy commented