Index: branches/RC/core/kernel/db/dblist.php =================================================================== diff -u -r10028 -r10660 --- branches/RC/core/kernel/db/dblist.php (.../dblist.php) (revision 10028) +++ branches/RC/core/kernel/db/dblist.php (.../dblist.php) (revision 10660) @@ -677,12 +677,12 @@ } /** - * Return unformatted field value - * - * @param string - * @return mixed - * @access public - */ + * Return unformatted field value + * + * @param string $name + * @return string + * @access public + */ function GetDBField($name) { $row =& $this->getCurrentRecord(); @@ -726,11 +726,18 @@ /** * Returns current record from list * + * @param int $offset Offset relative to current record index * @return Array */ - function &getCurrentRecord() + function &getCurrentRecord($offset = 0) { - return $this->Records[$this->CurrentIndex]; + $record_index = $this->CurrentIndex + $offset; + + if ($record_index >=0 && $record_index < $this->SelectedCount) { + return $this->Records[$record_index]; + } + + return false; } /**