<?php
  
IF (DB::GET_COLUMN("SELECT COUNT(`ID`) FROM `MAIL_SETTINGS` WHERE `USER_ID` = '".$user['ID']."' LIMIT 1") == 0) {
  
  DB::GET_ADD("INSERT INTO `MAIL_SETTINGS` (`USER_ID`) VALUES ('".$user['ID']."')");
  
}
  
?>