Quote:
Originally Posted by tylneyt
there needs to be a line added for 3.5.4, then it works just fine:
REPLACE by:
PHP Code:
// Start hack MarcoH64
if (is_array($user['usergroupid']) OR is_array($user['membergroupids']))
{ // for emails
// start addition, by tylneyt
// this line is necessary to create the variable in this scope
//
$u_condition = array();
// end addition
if (is_array($user['usergroupid']))
{
foreach($user['usergroupid'] AS $id)
{
$u_condition[] = "usergroupid = $id";
}
}
if (is_array($user['membergroupids']))
{
foreach($user['membergroupids'] AS $id)
{
$u_condition[] = "find_in_set($id, membergroupids)";
}
}
// End hack MarcoH64
hope that helps, should actually be a standard feature of next vB if you ask me!
|
Thanks for the update. I'm going to wait for 3.6 stable before I tackle this one again. I still love the idea and agree it should be a standard option in VB.