fud_delete_user() produces SQL error? [message #35478] |
Mon, 15 January 2007 20:29 |
maarten
Messages: 7 Registered: January 2007
Karma: 0
|
Junior Member |
|
|
Does fud_delete_user() in fudapi.inc.php work for other people?
When I call it, I get the following SQL error:
FUDforum2misc/include/theme/default/db.inc:72
FUDforum2misc/include/users_adm.inc:25
FUDforum2misc/scripts/fudapi.inc.php:949
FUDforum2misc/FUDtester.php:73
) 1054: Unknown column 'Object' in 'where clause'
Query: DELETE FROM fud26_mod WHERE user_id IN(Object)
I've tried passing both array(5) and just 5 into fud_delete_user(), makes no difference, problem seems internal.
Looks like fud_delete_user() uses _fud_simple_fetch_query(), which uses db_rowobj() which is returning an object instead of an array as expected by the rest of the code?
Zanks,
/Maarten.
|
|
|
|
|
|