from pr/34013 :
"From imp, add a sender address in the addressbook => you get an error message, and no address is added."
This commit is contained in:
parent
1e5f8701d9
commit
95d1e64162
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=53348
11
mail/horde-turba/files/patch-lib_api.php
Normal file
11
mail/horde-turba/files/patch-lib_api.php
Normal file
@ -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);
|
||||
}
|
||||
|
11
mail/horde4-turba/files/patch-lib_api.php
Normal file
11
mail/horde4-turba/files/patch-lib_api.php
Normal file
@ -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);
|
||||
}
|
||||
|
11
mail/turba/files/patch-lib_api.php
Normal file
11
mail/turba/files/patch-lib_api.php
Normal file
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user