Skip to content

Commit

Permalink
Add check to avoid treating non-numerical indexes in sorteable tables
Browse files Browse the repository at this point in the history
  • Loading branch information
ywarnier committed Apr 7, 2017
1 parent 8ff55e2 commit 528f9e0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main/inc/lib/pear/HTML/Table/Storage.php
Original file line number Diff line number Diff line change
Expand Up @@ -838,6 +838,10 @@ function _adjustEnds($row, $col, $method, $attributes = array())
{
$colspan = isset($attributes['colspan']) ? $attributes['colspan'] : 1;
$rowspan = isset($attributes['rowspan']) ? $attributes['rowspan'] : 1;
if (!is_numeric($row) or !is_numeric($col)) {
//throw new Exception('Row or column index is not numerical');
return;
}
if (($row + $rowspan - 1) >= $this->_rows) {
if ($this->_autoGrow) {
$this->_rows = $row + $rowspan;
Expand Down

0 comments on commit 528f9e0

Please sign in to comment.