This commit is contained in:
Marcus Boerger 2003-07-08 18:57:28 +00:00
parent 2ef1935c83
commit 139852d3ff

View File

@ -2127,7 +2127,7 @@ PHP_FUNCTION(sqlite_seek)
RETURN_FALSE;
}
if (row < 1 || row >= res->nrows) {
if (row < 0 || row >= res->nrows) {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "row %d out of range", row);
RETURN_FALSE;
}