Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $emailExists = $modx->getObject('modUserProfile',array('email' => $_POST['email']));
- if ($emailExists) {
- if ($user_email->get('internalKey') != $_POST['id']) {
- $modx->error->addField('email',$modx->lexicon('user_err_already_exists_email'));
- }
- }
Add Comment
Please, Sign In to add comment