Commit Diff


commit - c5d77dc4fdd85fe4dfa9f667b0a5f01d3146ce43
commit + a7631362b9285c94a59bbaf80527b78b19f511fe
blob - 2bc8ab97652e938d95d708ea42932946fd5a6e15
blob + 4c1ef2f71a485e206f33006cc518738639b1bcce
--- alexandria/search.php
+++ alexandria/search.php
@@ -138,7 +138,7 @@ function numremove($word)
   $statement = $mysqli->prepare($query);
 
   if ($mode == "" && $searchingBySystem) {
-    $searchString = "%$search%".numremove($search);
+    $searchString = '%'.$search.'%'.numremove($search);
     $statement->bind_param('ss', $searchString, $system);
   } else if ($searchingBySystem) {
     $statement->bind_param('s', $system);