Commit 5bd07f4b authored by Dries's avatar Dries

- Fixed search module bug. Patch by Michael.

parent 210203a7
......@@ -317,7 +317,7 @@ function search_item($item, $type) {
* ("Restrict search to", help text, etc).
*/
function search_form($action = 0, $query = 0, $options = 0) {
global $keys;
$keys = $_POST["keys"];
if (!$action) {
$action = url("search");
......@@ -350,8 +350,8 @@ function search_form($action = 0, $query = 0, $options = 0) {
* Collect the search results:
*/
function search_data() {
global $keys;
$keys = $_POST["keys"];
$edit = $_POST["edit"];
if (isset($keys)) {
......
......@@ -358,7 +358,7 @@ function search_view($keys = NULL) {
}
function search_page() {
global $keys;
$keys = $_POST["keys"];
switch (arg(1)) {
case "help":
......
......@@ -358,7 +358,7 @@ function search_view($keys = NULL) {
}
function search_page() {
global $keys;
$keys = $_POST["keys"];
switch (arg(1)) {
case "help":
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment