Re: Structures_DataGrid_Renderer_HTMLTable QUERY_STRING 'feature' (read bug! ;) )
| From: | Andrew Nagy | 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=' .What bug are you referring to? What is wrong with this block of code? Andrew$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,