Jelajahi Sumber

- Fix error message in addressbook.php lookup (#1351825).

Thijs Kinkhorst 19 tahun lalu
induk
melakukan
c139ed5f7e
2 mengubah file dengan 3 tambahan dan 2 penghapusan
  1. 1 0
      ChangeLog
  2. 2 2
      functions/addressbook.php

+ 1 - 0
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
 -------------------------------

+ 2 - 2
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');
 
-?>
+?>