Aleksander Machniak
2012-05-22 041c93ce0bc00cb6417ce2e4bdce2ed84d37f50a
program/steps/addressbook/list.inc
@@ -17,9 +17,6 @@
 +-----------------------------------------------------------------------+
 | Author: Thomas Bruederli <roundcube@gmail.com>                        |
 +-----------------------------------------------------------------------+
 $Id$
*/
// Use search result
@@ -34,7 +31,7 @@
        $page = isset($_SESSION['page']) ? $_SESSION['page'] : 1;
    $_SESSION['page'] = $page;
    $sort_col = $this->config->get('addressbook_sort_col', 'name');
    $sort_col = $RCMAIL->config->get('addressbook_sort_col', 'name');
    // Get records from all sources
    foreach ($search as $s => $set) {
@@ -46,7 +43,7 @@
        $source->set_search_set($set);
        // get records
        $result = $source->list_records(array('name', 'email'));
        $result = $source->list_records(array('name', 'firstname', 'surname', 'email'));
        while ($row = $result->next()) {
            $row['sourceid'] = $s;
@@ -76,7 +73,7 @@
    $CONTACTS = rcmail_contact_source(null, true);
    // get contacts for this user
    $result = $CONTACTS->list_records(array('name'));
    $result = $CONTACTS->list_records(array('name', 'firstname', 'surname', 'email'));
    if (!$result->count && $result->searchonly) {
        $OUTPUT->show_message('contactsearchonly', 'notice');