Typo

Signed-off-by: Denis Roy <denis.roy@eclipse.org>
diff --git a/web-api/friends_decorator.php b/web-api/friends_decorator.php
index fe2b397..97979f8 100644
--- a/web-api/friends_decorator.php
+++ b/web-api/friends_decorator.php
@@ -31,8 +31,8 @@
   $ldap = new LDAPConnection();
   $uid = $ldap->getUIDFromMail($id);
   
-  if($uid !== "") {
-	  $sql = "SELECT COUNT(1) AS RecordCount FROM friends where uid = " . $App->returnQuotedString($uid) . " and is_benefit = 1"; 
+  if($uid != "") {
+	  $sql = "SELECT COUNT(1) AS RecordCount FROM friends where uid <> '' AND uid = " . $App->returnQuotedString($uid) . " and is_benefit = 1"; 
 	  $result = $App->eclipse_sql($sql);
 	  if($myrow = mysql_fetch_array($result)) {
 	    if ($myrow["RecordCount"] > 0) {