Index: linkit.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/linkit/linkit.module,v
retrieving revision 1.21.2.12
diff -u -r1.21.2.12 linkit.module
--- linkit.module	30 Jan 2011 17:07:31 -0000	1.21.2.12
+++ linkit.module	7 Feb 2011 18:16:58 -0000
@@ -211,13 +211,13 @@
 }
 
 function linkit_search_styled_link() {
-  $matches = array();
-  $string = check_plain($_GET['string']);
-  if ($string) {
+  drupal_add_http_header('Content-Type', 'text/plain; charset=utf-8');
+  if (isset($_GET['string'])) {
+    $string = check_plain($_GET['string']);
     $matches = module_invoke_all('linkit_get_search_styled_link', $string);
+    
+    echo (isset($matches[0]) ? $matches[0] : '');
   }
-  echo $matches[0];
-  die();
 }
 
 function _linkit_form() {

