From aafc2fa9003296fce6303b01c1e0156bfd1d6693 Mon Sep 17 00:00:00 2001 From: ijliao Date: Sat, 19 Jan 2002 17:03:33 +0000 Subject: from pr/34013 : "From imp, add a sender address in the addressbook => you get an error message, and no address is added." --- mail/horde4-turba/files/patch-lib_api.php | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 mail/horde4-turba/files/patch-lib_api.php (limited to 'mail/horde4-turba') diff --git a/mail/horde4-turba/files/patch-lib_api.php b/mail/horde4-turba/files/patch-lib_api.php new file mode 100644 index 000000000000..1a4af9ffe0e0 --- /dev/null +++ b/mail/horde4-turba/files/patch-lib_api.php @@ -0,0 +1,11 @@ +--- lib/api.php.orig Tue Dec 25 20:01:35 2001 ++++ lib/api.php Thu Jan 17 23:46:58 2002 +@@ -90,7 +90,7 @@ + + $driver = Turba_Source::factory($addressbook, $cfgSources[$addressbook]); + $res = $driver->search(array('name' => $name, 'email' => $address), LASTNAME, TURBA_SEARCH_AND); +- if (PEAR::isError($res) || count($res) > 0) { ++ if (PEAR::isError($res) || count($res->objects) > 0) { + return PEAR::raiseError(_("This person is already in your addressbook."), HORDE_MESSAGE); + } + -- cgit