cvs: pear /Structures_DataGrid/DataGrid/Renderer HTMLTable.php

From: Date: Fri, 22 Oct 2004 16:04:50 +0000
Subject: cvs: pear /Structures_DataGrid/DataGrid/Renderer HTMLTable.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-25070@lists.php.net to get a copy of this message
asnagy Fri Oct 22 12:04:50 2004 EDT Modified files: /pear/Structures_DataGrid/DataGrid/Renderer HTMLTable.php Log: Fixed sorticon notice error http://cvs.php.net/diff.php/pear/Structures_DataGrid/DataGrid/Renderer/HTMLTable.php?r1=1.31&r2=1.32&ty=u Index: pear/Structures_DataGrid/DataGrid/Renderer/HTMLTable.php diff -u pear/Structures_DataGrid/DataGrid/Renderer/HTMLTable.php:1.31 pear/Structures_DataGrid/DataGrid/Renderer/HTMLTable.php:1.32 --- pear/Structures_DataGrid/DataGrid/Renderer/HTMLTable.php:1.31 Fri Oct 22 10:09:10 2004 +++ pear/Structures_DataGrid/DataGrid/Renderer/HTMLTable.php Fri Oct 22 12:04:50 2004 @@ -16,14 +16,14 @@ // | Author: Andrew Nagy <asnagy@webitecture.org> | // +----------------------------------------------------------------------+ // -// $Id: HTMLTable.php,v 1.31 2004/10/22 14:09:10 asnagy Exp $ +// $Id: HTMLTable.php,v 1.32 2004/10/22 16:04:50 asnagy Exp $ require_once 'HTML/Table.php'; /** * Structures_DataGrid_Renderer_HTMLTable Class * - * @version $Revision: 1.31 $ + * @version $Revision: 1.32 $ * @author Andrew S. Nagy <asnagy@webitecture.org> * @access public * @package Structures_DataGrid @@ -348,7 +348,8 @@ foreach($qString as $element) { if ($element != '') { if (stristr($element, $this->requestPrefix . 'orderBy')) { - $url .= $this->requestPrefix . 'orderBy=' . $column->orderBy; + $url .= $this->requestPrefix . 'orderBy=' . + $column->orderBy; $orderByExists = true; } elseif (stristr($element, $this->requestPrefix . 'direction')) { $url .= $direction; @@ -379,7 +380,8 @@ $column->orderBy . '&amp;' . $direction; } - $iconVar = "sortIcon" . $this->_dg->sortArray[1]; + $iconVar = "sortIcon" . + ($this->_dg->sortArray[1] ? $this->_dg->sortArray[1] : 'ASC'); $str = '<a href="' . $url . '">' . $column->columnName; if (($this->$iconVar != '') && ($this->_dg->sortArray[0] == $column->orderBy)) {

« previous php.pear.cvs (#25070) next »