Am getting this error when adding an aggregator2 feed to my 4.6.5 testbed site on php 4, mysql 4.1, apache 2.0.
It's referring to the code below ... not sure why the $edit['og_nids'] won't populate.
Any ideas?

________________

warning: implode(): Bad arguments. in
/var/www/html/drupalog/modules/og/contrib/og2list/og2list.module on
line 358.

user error: You have an error in your SQL syntax; check the manual
that corresponds to your MySQL server version for the right syntax to
use near ')' at line 1
query: SELECT g.*, n.title FROM og2list_groups g INNER JOIN node n ON
n.nid = g.nid WHERE g.nid IN (0,) in
/var/www/html/drupalog/includes/database.mysql.inc on line 66.

warning: Cannot modify header information - headers already sent by
(output started at /var/www/html/drupalog/includes/common.inc:384) in
/var/www/html/drupalog/includes/common.inc on line 192.

/**
* find the groups to send to
*
* @param $edit an array with an element named 'og_nids'
*/
function og2list_get_groups(&$edit) {
// TODO: Should we have a active/inactive state for MLs?
$result = db_query('SELECT g.*, n.title FROM {og2list_groups} g
INNER JOIN {node} n ON n.nid = g.nid WHERE g.nid IN (%s)', '0,'.
implode(',', $edit['og_nids']));

$edit['ogs'] = array();
while ($og = db_fetch_object($result)) {
$edit['ogs'][$og->nid] = array();
$edit['ogs'][$og->nid]['name'] = $og->title;
$edit['ogs'][$og->nid]['address'] = $og->recipient;
}
}

Comments

mbria’s picture

Same issue.

Did you find why it happens?

Thanks to post. Now I'm not feeling alone. ;-)