backport
authorPierre Habouzit (MadCoder <pierre.habouzit@m4x.org>
Thu, 19 May 2005 16:36:01 +0000 (16:36 +0000)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 26 Jun 2008 21:29:00 +0000 (23:29 +0200)
Patches applied:

 * opensource@polytechnique.org--2005/platal--release--0.9.6--patch-14
   forgotten }

git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-647

include/search/classes.inc.php

index 1684a7d..80325fd 100644 (file)
@@ -404,7 +404,7 @@ class RefSField extends SField
     function compare()
     {
         $val = addslashes($this->value);
-        return $this->exact ? "='$val}'" : " LIKE '%$val%'";
+        return $this->exact ? "='$val'" : " LIKE '%$val%'";
     }
 
     // }}}