Return 1 on research. 0 on no research
authorDennis Schafroth <dennis@indexdata.com>
Wed, 10 Oct 2012 08:59:54 +0000 (10:59 +0200)
committerDennis Schafroth <dennis@indexdata.com>
Wed, 10 Oct 2012 08:59:54 +0000 (10:59 +0200)
src/client.c

index fd1ebc9..618dfcf 100644 (file)
@@ -1414,7 +1414,7 @@ int client_parse_sort(struct client *cl, struct reclist_sortparms *sp)
         }
 
     }
-    return cl->same_search;
+    return !cl->same_search;
 }
 
 void client_set_session(struct client *cl, struct session *se)