Skip to content

Commit 5aa0761

Browse files
committed
Fix warning in main_search.php
1 parent 4f53ece commit 5aa0761

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: app/controllers/mainsearch.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@
2626
escaped slashes, it gives a 404 instead of going through mod_rewrite
2727
see: http://www.leakon.com/archives/865
2828
*/
29-
$terms = urlencode(urlencode(Utils::cleanString($_GET['recherche'])));
29+
$terms = isset($_GET['recherche'])
30+
? urlencode(urlencode(Utils::cleanString($_GET['recherche'])))
31+
: '';
3032

3133
$regex = [];
3234
$regex['whole'] = isset($_GET['whole_word']) ? 'whole_word=1' : '';

0 commit comments

Comments
 (0)