]> git.donarmstrong.com Git - roundcube.git/blobdiff - program/steps/addressbook/list.inc
Imported Upstream version 0.7
[roundcube.git] / program / steps / addressbook / list.inc
index ab82faf66e24702938f47860c3007b72841b4793..6b00a824f1efcf688cbfaacd3a025b02d79c9182 100644 (file)
@@ -15,7 +15,7 @@
  | Author: Thomas Bruederli <roundcube@gmail.com>                        |
  +-----------------------------------------------------------------------+
 
- $Id: list.inc 4850 2011-06-14 13:45:26Z alec $
+ $Id: list.inc 5315 2011-10-06 12:31:38Z thomasb $
 
 */
 
@@ -73,6 +73,11 @@ else {
 
     // get contacts for this user
     $result = $CONTACTS->list_records(array('name'));
+    
+    if (!$result->count && $result->searchonly) {
+        $OUTPUT->show_message('contactsearchonly', 'notice');
+        $OUTPUT->command('command', 'advanced-search');
+    }
 }
 
 // update message count display