Permalink
Browse files

Fix warning in main_search.php

  • Loading branch information...
flodolo committed Aug 19, 2016
1 parent 4f53ece commit 5aa07615bc5497d9a8a70d8b79d05286effea8bf
Showing with 3 additions and 1 deletion.
  1. +3 −1 app/controllers/mainsearch.php
@@ -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' : '';

0 comments on commit 5aa0761

Please sign in to comment.