thomascube
2012-02-02 43875379d5fcfc4e4d29e2edcbbed614a2050f7d
program/steps/addressbook/list.inc
@@ -5,7 +5,7 @@
 | program/steps/addressbook/list.inc                                    |
 |                                                                       |
 | This file is part of the Roundcube Webmail client                     |
 | Copyright (C) 2005-2007, The Roundcube Dev Team                       |
 | Copyright (C) 2005-2012, The Roundcube Dev Team                       |
 |                                                                       |
 | Licensed under the GNU General Public License version 3 or            |
 | any later version with exceptions for skins & plugins.                |
@@ -34,6 +34,7 @@
        $page = isset($_SESSION['page']) ? $_SESSION['page'] : 1;
    $_SESSION['page'] = $page;
    $sort_col = $this->config->get('addressbook_sort_col', 'name');
    // Get records from all sources
    foreach ($search as $s => $set) {
@@ -49,7 +50,7 @@
        while ($row = $result->next()) {
            $row['sourceid'] = $s;
            $key = $row['name'] . ':' . $row['sourceid'];
            $key = $row[$sort_col] . ':' . $row['sourceid'];
            $records[$key] = $row;
        }
        unset($result);