Hello,

I use this code in my module:

 buddy_api_add_oneway($account1, $account2, $buddyinfo);

If the users are already buddies I get the following warning:

user warning: Duplicate entry '70-2' for key 1 query: INSERT INTO buddylist (received, uid, buddy, timestamp) VALUES (1, 70, 2, 1195915421) in /kunden/189498_65187/devel/includes/database.mysql.inc on line 172.

Shouldn't check the buddy_api_add_oneway()-function for dublicates?

Regards,

macco

Comments

nodestroy’s picture

Status: Active » Fixed

fixed :)

Anonymous’s picture

Status: Fixed » Closed (fixed)

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

nodestroy’s picture

Project: » Buddylist2