1
0
mirror of https://github.com/moparisthebest/wallabag synced 2024-12-17 21:22:15 -05:00

postgres sequence error fix, issue #602

This commit is contained in:
Maryana Rozhankivska 2014-04-05 11:22:33 +03:00
parent 06e1a9a98a
commit 1bcbe8bebf

View File

@ -374,7 +374,7 @@ class Database {
$id = null; $id = null;
} }
else { else {
$id = intval($this->getLastId( (STORAGE == 'postgres') ? 'users_id_seq' : '' )); $id = intval($this->getLastId( (STORAGE == 'postgres') ? 'entries_id_seq' : '') );
} }
return $id; return $id;
} }