aboutsummaryrefslogtreecommitdiff
path: root/classes/PhpIsisDb.php
diff options
context:
space:
mode:
Diffstat (limited to 'classes/PhpIsisDb.php')
-rw-r--r--classes/PhpIsisDb.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/PhpIsisDb.php b/classes/PhpIsisDb.php
index c568743..9e885d9 100644
--- a/classes/PhpIsisDb.php
+++ b/classes/PhpIsisDb.php
@@ -49,7 +49,7 @@ class PhpIsisDb implements IsisDb {
*/
public function read($id) {
$results = isis_search('$', $this->db);
- if (!isis_data_seek($results, $id)) {
+ if (!isis_data_seek($results, $id-1)) {
return FALSE;
}