Commit Diff


commit - 400faf1a2989975f169752a1aee2c01413be8b7f
commit + 9a223d734056889b7947f26cdfc34b32f554c2e1
blob - eeef150be611c6981f39e823910bfee226432e7d
blob + cb09fd12e75244244bc2d21717fa51d669610a9f
--- alexandria/search.php
+++ alexandria/search.php
@@ -138,7 +138,7 @@ function numremove($word)
   $statement = $mysqli->prepare($query);
 
   if ($mode == "") {
-    $searchString = '%'.$search.'%'.numremove($search);
+    $searchString = '%'.$search.'%';
     if ($searchingBySystem) {
         $statement->bind_param('ss', $searchString, $system);
     } else {
@@ -218,7 +218,7 @@ function numremove($word)
        if ($next > MAX_RESULTS) $next = MAX_RESULTS;
        print "<INPUT TYPE=\"submit\" VALUE=\"Next $next\"></FORM>";
    }
-   mysql_free_result($result);
+   mysqli_free_result($result);
    print "</td></tr></table>";
 ?>
 </table></td></tr></table>