PEAR is archived and read-only

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

Home » HTML » Pager_Sliding » Bug #4883

Change $_GET to $_REQUEST

Details

Request #4883Change $_GET to $_REQUEST
Submitted2005-07-22 12:30 UTC
Fromalbsala at gmail dot com
Assignedquipo
StatusClosed
PackagePager_Sliding
PHP Version4.3.11
OSGNU/Linux
Roadmaps(Not assigned)

Comments

[2005-07-22 12:30 UTC] albsala at gmail dot com

Description:
------------
In the line 1127-1128 (version 1.19) (function _setOptions) I change $_GET to $_REQUEST because I use a html form with a hidden input "page". It's usefull.

If this is a stupid request, sorry. I'm a begginer with a poor english.

Test script:
---------------
-I would change this lines:

if (isset($_GET[$this->_urlVar])) {
$this->_currentPage = max((int)@$_GET[$this->_urlVar], 1);

-to:

if (isset($_REQUEST[$this->_urlVar])) {
$this->_currentPage = max((int)@$_REQUEST[$this->_urlVar], 1);