PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

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