| | |
| | | +-----------------------------------------------------------------------+ |
| | | */ |
| | | |
| | | $afields = $RCMAIL->config->get('contactlist_fields'); |
| | | |
| | | // Use search result |
| | | if (!empty($_REQUEST['_search']) && isset($_SESSION['search'][$_REQUEST['_search']])) |
| | | { |
| | |
| | | $source->set_search_set($set); |
| | | |
| | | // get records |
| | | $result = $source->list_records(array('name', 'firstname', 'surname', 'email')); |
| | | $result = $source->list_records($afields); |
| | | |
| | | while ($row = $result->next()) { |
| | | $row['sourceid'] = $s; |
| | |
| | | $CONTACTS = rcmail_contact_source(null, true); |
| | | |
| | | // get contacts for this user |
| | | $result = $CONTACTS->list_records(array('name', 'firstname', 'surname', 'email')); |
| | | $result = $CONTACTS->list_records($afields); |
| | | |
| | | if (!$result->count && $result->searchonly) { |
| | | $OUTPUT->show_message('contactsearchonly', 'notice'); |