these actually work now
[mir.git] / source / mircoders / search / ImagesSearchTerm.java
index 2f5b4c6..0b2ca05 100755 (executable)
@@ -75,8 +75,8 @@ public class ImagesSearchTerm extends SearchTerm{
 
   public String makeTerm(HttpServletRequest req){
     String wanted = req.getParameter(paramName);
-    if (wanted == "y"){
-      return matchField + ":" + "\"" + wanted + "\"";
+    if (wanted != null && wanted.equals("y")){
+      return matchField + ":y";
     }
     else {
       return null;