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

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

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

Loading…
Cancel
Save