I was wondering of anyone can help me. I have 2 of these errors, this one is on: if ( $extra['over_email'] ). Does anyone knows what's wrong with it? I don't know a thing about PHP. I can send the other one after.
$this->core->db->construct( array(
'select' => array( 'id', 'name', 'email', 'email_html' ),
'from' => 'members',
'where' => array( 'id', '=', $member_id ),
'limit' => array( 0, 1 ),
) );
$this->core->db->execute();
if ( $this->core->db->get_num_rows() == 1 )
{
$mem = $this->core->db->fetch_row();
if ( $extra['over_email'] )
{
$this->core->email->add_recipient( $extra['over_email'] );
$replacements['MEM_EMAIL'] = $extra['over_email'];
}
else
{
$this->core->email->add_recipient( $mem['email'] );
$replacements['MEM_EMAIL'] = $mem['email'];
}