addrsrch_fullname is already fetched by load_prefs.php
authorpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 21 Dec 2011 13:27:54 +0000 (13:27 +0000)
committerpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 21 Dec 2011 13:27:54 +0000 (13:27 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@14240 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/addressbook.php

index ba38bb993daf075584ea1bf8ecc6dcd1ac175730..8dd6f2829a6dd85ecbaa07c3a586835f493298f0 100644 (file)
@@ -515,8 +515,7 @@ class AddressBook {
      * @return string email address with real name prepended
      */
     function full_address($row) {
-        global $data_dir, $username;
-        $addrsrch_fullname = getPref($data_dir, $username, 'addrsrch_fullname');
+        global $data_dir, $username, $addrsrch_fullname;
 
         // allow multiple addresses in one row (poor person's grouping - bah)
         // (separate with commas)