PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » HTML » Pager » Bug #589

common.php raise a notice if the querystring has no '=' character

Details

Submitted2004-01-16 03:16 UTC
Frommaka3d at yahoo dot com dot br
Assignedquipo
StatusClosed
PackagePager
PHP VersionIrrelevant
OSirrelevant
Roadmaps(Not assigned)

Comments

[2004-01-16 03:16 UTC] maka3d at yahoo dot com dot br

Description:
------------
common.php 641 to 647

call a page that use pager like this:

pager.php?var

a notice is raised since there's no '=' character

here's a patch

if(strstr($qs[$i], '=') !== false){ // check first if exist a pair
list($name, $value) = explode('=', $qs[$i]);
if ($name != $this->_urlVar) {
$qs[$name] = $value;
}
}else{
$qs[$qs[$i]] = ''; // do not ignore the "not pair" parameter