diff --git a/inc/poche/Database.class.php b/inc/poche/Database.class.php index 6244df887..a80eea97a 100755 --- a/inc/poche/Database.class.php +++ b/inc/poche/Database.class.php @@ -374,7 +374,7 @@ class Database { $id = null; } else { - $id = intval($this->getLastId( (STORAGE == 'postgres') ? 'users_id_seq' : '' )); + $id = intval($this->getLastId( (STORAGE == 'postgres') ? 'entries_id_seq' : '') ); } return $id; }