- Fix error message in addressbook.php lookup (#1351825).
authorkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 21 Nov 2005 22:46:09 +0000 (22:46 +0000)
committerkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 21 Nov 2005 22:46:09 +0000 (22:46 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@10394 7612ce4b-ef26-0410-bec9-ea0150e637f0

ChangeLog
functions/addressbook.php

index bb68cf2124b14acbfabf0af522e5af3d76e64bfa..16f024603ee852dca31055fa5d44a9199738b090 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -488,6 +488,7 @@ Version 1.5.1 -- CVS
     the subscribed mailbox-list.
   - Properly clean up temporary attachment files when saving as Draft
     (#1358407) and fix attachment cleaning code on logout.
+  - Fix error message in addressbook.php lookup (#1351825).
 
 Version 1.5.0 - 2 February 2004
 -------------------------------
index 6e18d1b68af864cb53197c44e27e871532e83472..4151a7a3324f7bc109739009a63d43618482cb48 100644 (file)
@@ -621,7 +621,7 @@ class AddressBook {
             if (is_array($res)) {
                return $res;
             } else {
-               $this->error = htmlspecialchars($backend->error);
+               $this->error = htmlspecialchars($this->backends[$bnum]->error);
                return false;
             }
         }
@@ -967,4 +967,4 @@ if((isset($addrbook_dsn) && !empty($addrbook_dsn)) ||
  */
 do_hook('abook_add_class');
 
-?>
\ No newline at end of file
+?>