From: Martin Blumenthal Date: Thu, 4 Jun 2009 14:58:23 +0000 (+0200) Subject: Also store the searchtext in the current session. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=04e3a955e6c51da7bcacacdfcdb24e2f7e17e33f;p=horde.git Also store the searchtext in the current session. --- 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');