From: x2001corpet Date: Mon, 18 Sep 2006 18:37:25 +0000 (+0000) Subject: fix un bug d'affichage des adresses actuelles ou de toutes les adresses X-Git-Tag: xorg/0.9.11~69 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=a23a946383496bc74f31a12b8207490eb9e9ad4b;p=platal.git fix un bug d'affichage des adresses actuelles ou de toutes les adresses git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@850 839d8a87-29fc-0310-9880-83ba4fa771e5 --- diff --git a/modules/geoloc.php b/modules/geoloc.php index e65af0e..2abe8a7 100644 --- a/modules/geoloc.php +++ b/modules/geoloc.php @@ -77,7 +77,7 @@ class GeolocModule extends PLModule $page->changeTpl('geoloc/index.tpl'); $fields = new SFieldGroup(true, advancedSearchFromInput()); $search = str_replace('&','&',$fields->get_url()); - if (!Env::has('only_current')) + if ((!Env::has('only_current') && !Env::has('rechercher')) || Env::i('only_current') == 'on') $search .= '&only_current=on'; elseif (Env::i('only_current') != 'on') $search .= '&only_current=';