fix automatic tag completion
[photo-tags.git] / getjson.php
index 028864652f2d282bea6814ad56c2f129d32f8ed0..14af09b3003bf7feb5f81a728e52b56f72228d79 100644 (file)
@@ -20,8 +20,8 @@ if (isset($_REQUEST["S"]))
   {
     /* single tag or part of tag */
     $tag = sqlite_escape_string($_REQUEST["S"]);
-    /* individual tags are separated by '+' */
-    $result = $DB->query("SELECT name FROM tags where name like \"%$tag%\"");
+
+    $result = $DB->query("SELECT name FROM tags");
     $count = $DB->query("SELECT 1");
   }
 else