From: kink Date: Mon, 21 Nov 2005 22:46:09 +0000 (+0000) Subject: - Fix error message in addressbook.php lookup (#1351825). X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=b6827bc0d558ecc5561231476c0dbb4e84ce69e7 - Fix error message in addressbook.php lookup (#1351825). git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@10394 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/ChangeLog b/ChangeLog index bb68cf21..16f02460 100644 --- 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 ------------------------------- diff --git a/functions/addressbook.php b/functions/addressbook.php index 6e18d1b6..4151a7a3 100644 --- a/functions/addressbook.php +++ b/functions/addressbook.php @@ -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 +?>