浏览代码

fix: initialize $where

stekkel 23 年之前
父节点
当前提交
72dff04330
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      src/search.php

+ 5 - 0
src/search.php

@@ -328,6 +328,11 @@ echo '         </SELECT>'.
 if ( !isset( $what ) ) {
 if ( !isset( $what ) ) {
     $what = '';
     $what = '';
 }
 }
+if ( !isset( $where ) ) {
+    $where = '';
+}
+
+
 $what_disp = str_replace(',', ' ', $what);
 $what_disp = str_replace(',', ' ', $what);
 $what_disp = str_replace('\\\\', '\\', $what_disp);
 $what_disp = str_replace('\\\\', '\\', $what_disp);
 $what_disp = str_replace('\\"', '"', $what_disp);
 $what_disp = str_replace('\\"', '"', $what_disp);