summaryrefslogtreecommitdiff
path: root/program/steps/addressbook/move.inc
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2014-04-24 15:28:45 +0200
committerAleksander Machniak <alec@alec.pl>2014-04-24 15:28:45 +0200
commiteed897ca030bff7a684d15be3bf46fc0a9565a82 (patch)
tree1257757ef31a0e6d68070656607f5cf90242ff5f /program/steps/addressbook/move.inc
parentf22de58087df469615ed1f24aaed54f8a4309237 (diff)
Fix possibly wrong error message when contact with the same email exists on move/copy
Diffstat (limited to 'program/steps/addressbook/move.inc')
-rw-r--r--program/steps/addressbook/move.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/program/steps/addressbook/move.inc b/program/steps/addressbook/move.inc
index 6a70e7bda..7a730af77 100644
--- a/program/steps/addressbook/move.inc
+++ b/program/steps/addressbook/move.inc
@@ -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';
}
}