Skip to content

Commit

Permalink
fix for null query (#20)
Browse files Browse the repository at this point in the history
Co-authored-by: ebakernz <[email protected]>
  • Loading branch information
ebakernz and ebakernz authored Dec 5, 2022
1 parent 14128ef commit b87480a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SearchPageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ public static function get_mapped_filters(){
public static function get_query($mysqlSafe = false){
$query = self::$query;
if ($query) {
if ($mysqlSafe) {
if ($mysqlSafe && $query) {
$query = str_replace("'", "\'", $query);
$query = str_replace('"', '\"', $query);
$query = str_replace('`', '\`', $query);
Expand Down

0 comments on commit b87480a

Please sign in to comment.