From da752c9f13ca174a2a09de1d12d5cdc0c1b5e6f6 Mon Sep 17 00:00:00 2001 From: hukoeth Date: Mon, 20 Sep 2010 01:42:41 +0800 Subject: [PATCH] Search now searched in full name and user name --- modules/photoannotation/helpers/photoannotation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/photoannotation/helpers/photoannotation.php b/modules/photoannotation/helpers/photoannotation.php index 1a5bd628..749f7778 100644 --- a/modules/photoannotation/helpers/photoannotation.php +++ b/modules/photoannotation/helpers/photoannotation.php @@ -32,7 +32,7 @@ class photoannotation_Core { "SELECT SQL_CALC_FOUND_ROWS {users}.*, " . " MATCH({users}.`name`) AGAINST ('$q' IN BOOLEAN MODE) AS `score` " . "FROM {users} " . - "WHERE MATCH({users}.`name`) AGAINST ('$q' IN BOOLEAN MODE) " . + "WHERE MATCH({users}.`name`, {users}.`full_name`) AGAINST ('$q' IN BOOLEAN MODE) " . "ORDER BY `score` DESC " . "LIMIT $page_size OFFSET $offset"; $data = $db->query($query);