Fix possibly wrong error message when contact with the same email exists on move/copy

pull/164/merge
Aleksander Machniak 11 years ago
parent f22de58087
commit eed897ca03

@ -88,9 +88,9 @@ foreach ($cids as $source => $cid) {
}
}
else {
$record = $result->first();
$ids[] = $record['ID'];
$errormsg = empty($a_record['email']) ? 'contactnameexists' : 'contactexists';
$record = $result->first();
$ids[] = $record['ID'];
$errormsg = empty($email) ? 'contactnameexists' : 'contactexists';
}
}

@ -97,9 +97,9 @@ foreach ($cids as $source => $source_cids) {
}
}
else {
$record = $result->first();
$ids[] = $record['ID'];
$errormsg = empty($a_record['email']) ? 'contactnameexists' : 'contactexists';
$record = $result->first();
$ids[] = $record['ID'];
$errormsg = empty($email) ? 'contactnameexists' : 'contactexists';
}
}

Loading…
Cancel
Save