Index: trunk/core/kernel/db/db_connection.php =================================================================== diff -u -N -r3999 -r4329 --- trunk/core/kernel/db/db_connection.php (.../db_connection.php) (revision 3999) +++ trunk/core/kernel/db/db_connection.php (.../db_connection.php) (revision 4329) @@ -260,12 +260,13 @@ * otherwise * * @param string $sql + * @param int $offset * @return string * @access public */ - function GetOne($sql) + function GetOne($sql, $offset = 0) { - $row = $this->GetRow($sql); + $row = $this->GetRow($sql, $offset); if(!$row) return false; return array_shift($row); @@ -276,12 +277,13 @@ * if query ok, false otherwise * * @param stirng $sql + * @param int $offset * @return Array * @access public */ - function GetRow($sql) + function GetRow($sql, $offset = 0) { - $sql .= ' '.$this->getLimitClause(0,1); + $sql .= ' '.$this->getLimitClause($offset, 1); $ret = $this->Query($sql); if(!$ret) return false;