<?php require_once('includes/requirelogin.inc.php'); $op=TGET('op'); $mb_id=current_mb_id(); $DBConn->connect(true); $emails=db_load_member_emails($DBConn,$mb_id,false); $dataset['EMAIL']=$emails; $notifying=false; foreach ($dataset['EMAIL'] as &$email) { $email['NOTIFYING']=$email['me_notify']?array(0):array(); $email['PREVALID']=$email['me_status']=='PREVALID'?array(0):array(); $email['VALIDATED']=$email['me_status']=='VALIDATED'?array(0):array(); $notifying=$notifying || $email['me_notify']; } $dataset['NOT-NOTIFYING']=$notifying?array():array(0); $dataset['SET-DONE']=$op=='ok'?array(0):array(); ?>