From: Pierre Habouzit (MadCoder Date: Thu, 19 May 2005 16:36:01 +0000 (+0000) Subject: backport X-Git-Tag: xorg/old~115 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=39415a89dd04f22842bc4c7d1957e16e717da08b;p=platal.git backport 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 --- diff --git a/include/search/classes.inc.php b/include/search/classes.inc.php index 1684a7d..80325fd 100644 --- a/include/search/classes.inc.php +++ b/include/search/classes.inc.php @@ -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%'"; } // }}}