projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3cf0de9
)
Also store the searchtext in the current session.
author
Martin Blumenthal
<tinu@humbapa.ch>
Thu, 4 Jun 2009 14:58:23 +0000
(16:58 +0200)
committer
Martin Blumenthal
<tinu@humbapa.ch>
Thu, 4 Jun 2009 14:58:23 +0000
(16:58 +0200)
skoli/search.php
patch
|
blob
|
history
diff --git
a/skoli/search.php
b/skoli/search.php
index
3a646ed
..
f67c933
100644
(file)
--- 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');