Re: Structures_DataGrid_Renderer_HTMLTable QUERY_STRING 'feature' (read bug! ;) )

From: Date: Fri, 28 Jan 2005 18:44:41 +0000
Subject: Re: Structures_DataGrid_Renderer_HTMLTable QUERY_STRING 'feature' (read bug! ;) )
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-17248@lists.php.net to get a copy of this message
Ian P. Christian wrote:
Line 350: if (stristr($element, $this->_dg->requestPrefix . 'orderBy')) { $url .= $this->_dg->requestPrefix . 'orderBy=' .
          $column->orderBy;
$orderByExists = true; } elseif (stristr($element, $this->_dg->requestPrefix . 'direction')) { $url .= $direction; } elseif (stristr($element, $this->_dg->requestPrefix . 'page') && $this->sortingResetsPaging) { $url .= $this->_dg->requestPrefix . 'page=1'; } else { $url .= $element; } You're doing 'strstr', so if any other paramters contain 'page', they are ignored :) Kind Regards,
What bug are you referring to? What is wrong with this block of code? Andrew

« previous php.pear.general (#17248) next »