From: Marcus Boerger Date: Tue, 8 Jul 2003 18:57:28 +0000 (+0000) Subject: Fix bug #24540 X-Git-Tag: BEFORE_ARG_INFO~317 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=139852d3fff7447a1bbaad63ef7a43cfd653e3c1;p=php Fix bug #24540 --- diff --git a/ext/sqlite/sqlite.c b/ext/sqlite/sqlite.c index e72c819624..e0104cda74 100644 --- a/ext/sqlite/sqlite.c +++ b/ext/sqlite/sqlite.c @@ -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; }