LSsearch :: getSortTable() : Fixed notice PHP

This commit is contained in:
Benjamin Renard 2010-11-16 19:39:43 +01:00
parent aa218fce3b
commit 699d69d23d

View file

@ -1104,7 +1104,7 @@ class LSsearch {
* @retval array The Table of id lines of results sorted * @retval array The Table of id lines of results sorted
**/ **/
function getSortTable() { function getSortTable() {
if ($this -> result['sort'][$this -> params['sortBy']][$this -> params['sortDirection']]) { if (isset($this -> result['sort'][$this -> params['sortBy']][$this -> params['sortDirection']])) {
return $this -> result['sort'][$this -> params['sortBy']][$this -> params['sortDirection']]; return $this -> result['sort'][$this -> params['sortBy']][$this -> params['sortDirection']];
} }
return range(0,($this -> total-1)); return range(0,($this -> total-1));