From 04e3a955e6c51da7bcacacdfcdb24e2f7e17e33f Mon Sep 17 00:00:00 2001 From: Martin Blumenthal Date: Thu, 4 Jun 2009 16:58:23 +0200 Subject: [PATCH] Also store the searchtext in the current session. --- skoli/search.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/skoli/search.php b/skoli/search.php index 3a646ed09..f67c93310 100644 --- a/skoli/search.php +++ b/skoli/search.php @@ -44,8 +44,11 @@ if (($type = Util::getFormData('type')) !== null) { } else if (isset($_SESSION['skoli']['search_type'])) { $type = $_SESSION['skoli']['search_type']; } - -$search = Util::getFormData('stext'); +if (($search = Util::getFormData('stext')) !== null) { + $_SESSION['skoli']['search_stext'] = $search; +} else if (isset($_SESSION['skoli']['search_stext'])) { + $search = $_SESSION['skoli']['search_stext']; +} /* Sort out the sorting values */ $sortby = Util::getFormData('sortby'); -- 2.11.0