Skip to content

Commit

Permalink
Fix warning in main_search.php
Browse files Browse the repository at this point in the history
  • Loading branch information
flodolo committed Aug 19, 2016
1 parent 4f53ece commit 5aa0761
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/controllers/mainsearch.php
Expand Up @@ -26,7 +26,9 @@
escaped slashes, it gives a 404 instead of going through mod_rewrite
see: http://www.leakon.com/archives/865
*/
$terms = urlencode(urlencode(Utils::cleanString($_GET['recherche'])));
$terms = isset($_GET['recherche'])
? urlencode(urlencode(Utils::cleanString($_GET['recherche'])))
: '';

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

0 comments on commit 5aa0761

Please sign in to comment.