A jakby tak:
//-----------------------------------------
// Any mediator is Online?
//-----------------------------------------
if ( $this->ipsclass->vars['ram_no_online_pass'] )
{
if ( $this->ipsclass->vars['ram_active_medi'] )
{
/* Select all mediator's :-) */
$this->ipsclass->DB->build_query( array( 'select' => '*',
'from' => 'members',
'where' => 'trader IN ( '.$this->ipsclass->vars['ram_active_medi'].' )') );
$this->ipsclass->DB->exec_query();
/* What if tag exists but no members have it? Continue with code :-) */
if ( $this->ipsclass->DB->get_num_rows() )
{
$indicator = 0;
while ( $row = $this->ipsclass->DB->fetch_row() )
{
$check = $this->ipsclass->member_set_information( $row );
if ( $check['_online'] == 1 )
{
$indicator = 1;
break;
}
}
if ( $indicator )
{
$this->output .= $this->ipsclass->compiled_templates['skin_mediator']->no_medi_online();
return;
}
}
}
}
Sorki jeśli źle zrozumiałem, ale ideę myślę, że widzisz.