php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #43352
Patch bug43352.diff revision 2010-07-09 14:13 UTC by vrana@php.net

Patch bug43352.diff for Website problem Bug #43352

Patch version 2010-07-09 14:13 UTC

Return to Bug #43352 | Download this patch
Patch Revisions:

Developer: vrana@php.net

Index: include/manual-lookup.inc
===================================================================
--- include/manual-lookup.inc	(revision 301113)
+++ include/manual-lookup.inc	(working copy)
@@ -139,7 +139,7 @@
         $words = "'" . implode("','", $keywords) . "'";
         
         $SQL = "SELECT name, prio FROM fs WHERE lang = 'LANG_HERE'
-                AND keyword IN (" . $words . ") ORDER BY prio LIMIT 1";
+                AND keyword IN (" . $words . ") ORDER BY keyword = $keyword DESC, prio LIMIT 1";
     }
 
     // Check for all the languages
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 03:01:28 2024 UTC