[ekiga/gnome-2-26] Do not count ekiga.net's first entry "Search Results Limited to 100 Entries"



commit f46089f99991663e3ce907a74b448de0b48ece9c
Author: Eugen Dedu <Eugen Dedu pu-pm univ-fcomte fr>
Date:   Sun May 30 18:06:05 2010 +0200

    Do not count ekiga.net's first entry "Search Results Limited to 100 Entries"
    
    Fix bug #551963.

 lib/engine/components/ldap/ldap-book.cpp |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/lib/engine/components/ldap/ldap-book.cpp b/lib/engine/components/ldap/ldap-book.cpp
index 6beff70..54903ba 100644
--- a/lib/engine/components/ldap/ldap-book.cpp
+++ b/lib/engine/components/ldap/ldap-book.cpp
@@ -894,6 +894,9 @@ OPENLDAP::Book::refresh_result ()
     msg_result = ldap_next_message (ldap_context, msg_result);
   } while (msg_result != NULL);
 
+  // Do not count ekiga.net's first entry "Search Results ... 100 entries"
+  if (strcmp (bookinfo.uri_host.c_str(), "ldap://ekiga.net";) == 0)
+    nbr--;
   c_status = g_strdup_printf (ngettext ("%d user found",
 					"%d users found", nbr), nbr);
   status = c_status;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]