| CODENOTIFIER | HelpYou are not signed inSign in |
Project: Joomla
Revision: 10347
Author: plamendp
Date: 29 May 2008 03:50:17
Changes:# [#11261] Additional check against empty array or non-array value
Files:| ... | ...@@ -99,11 +99,11 @@ | |
| 99 | 99 | */ |
| 100 | 100 | function getRows( $start, $limit ) |
| 101 | 101 | { |
| 102 | $i = 0; | |
| 103 | if (count($this->_items) == 0) { | |
| 104 | return null; | |
| 105 | } | |
| 106 | ||
| 102 | if ( (!is_array($this->_items)) || (count($this->_items) <= 0) ) { | |
| 103 | return null; | |
| 104 | } | |
| 105 | ||
| 106 | $i = 0; | |
| 107 | 107 | $rows = null; |
| 108 | 108 | foreach ($this->_items as $item) |
| 109 | 109 | { |