summaryrefslogtreecommitdiff
path: root/ext/sqlite/sqlite.c
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2003-07-08 18:57:28 +0000
committerMarcus Boerger <helly@php.net>2003-07-08 18:57:28 +0000
commit139852d3fff7447a1bbaad63ef7a43cfd653e3c1 (patch)
tree2801914aadb52a8b36a8d0837a3b2c05e75071cc /ext/sqlite/sqlite.c
parent2ef1935c83b27780df9502573d938f41b3e56595 (diff)
downloadphp-git-139852d3fff7447a1bbaad63ef7a43cfd653e3c1.tar.gz
Fix bug #24540
Diffstat (limited to 'ext/sqlite/sqlite.c')
-rw-r--r--ext/sqlite/sqlite.c2
1 files changed, 1 insertions, 1 deletions
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;
}