From 7929fc95feddfabac28e38f35cd7a5a45b4731ce Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Tue, 10 May 2005 04:16:03 +0000 Subject: [PATCH] Bugfix del bugfix del query string =) --- src/lib/listador.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.43.0