From: Leandro Lucarella Date: Tue, 10 May 2005 04:16:03 +0000 (+0000) Subject: Bugfix del bugfix del query string =) X-Git-Tag: svn_import~5 X-Git-Url: https://git.llucax.com/z.facultad/75.43/tp1.git/commitdiff_plain/7929fc95feddfabac28e38f35cd7a5a45b4731ce Bugfix del bugfix del query string =) --- diff --git a/src/lib/listador.php b/src/lib/listador.php index 5448b1a..850b4f1 100644 --- a/src/lib/listador.php +++ b/src/lib/listador.php @@ -53,12 +53,13 @@ function listar($item, $link = '', $caption = null, $summary = null, $cant = 15) $pags = ceil($total / $cant); if ($pags == 1) return; // Si tengo una sóla página, para qué el paginador? // Arrastro query string, si corresponde - $query = str_replace('&', '&', $_SERVER['QUERY_STRING']); + $query = $_SERVER['QUERY_STRING']; if (($pos = strpos($query, 'lista_from=')) !== false) { if ($pos) $query = substr($query, 0, --$pos); else $query = ''; } + $query = str_replace('&', '&', $query); for ($i = 0; $i < $pags; ++$i) { $from = $i * $cant;