diff options
author | Maryana Rozhankivska <mariroz@mr.lviv.ua> | 2014-04-05 11:22:33 +0300 |
---|---|---|
committer | Maryana Rozhankivska <mariroz@mr.lviv.ua> | 2014-04-05 11:22:33 +0300 |
commit | 1bcbe8bebf4f469420fc36759e6f5ae5ea551535 (patch) | |
tree | 3eb138d4ca8e63d8b1d435573a76f437752d1d6e | |
parent | 06e1a9a98a1d7276e23ba47a15225a1a0741dd2d (diff) | |
download | wallabag-1bcbe8bebf4f469420fc36759e6f5ae5ea551535.tar.gz wallabag-1bcbe8bebf4f469420fc36759e6f5ae5ea551535.tar.zst wallabag-1bcbe8bebf4f469420fc36759e6f5ae5ea551535.zip |
postgres sequence error fix, issue #602
-rwxr-xr-x | inc/poche/Database.class.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/poche/Database.class.php b/inc/poche/Database.class.php index 6244df88..a80eea97 100755 --- a/inc/poche/Database.class.php +++ b/inc/poche/Database.class.php | |||
@@ -374,7 +374,7 @@ class Database { | |||
374 | $id = null; | 374 | $id = null; |
375 | } | 375 | } |
376 | else { | 376 | else { |
377 | $id = intval($this->getLastId( (STORAGE == 'postgres') ? 'users_id_seq' : '' )); | 377 | $id = intval($this->getLastId( (STORAGE == 'postgres') ? 'entries_id_seq' : '') ); |
378 | } | 378 | } |
379 | return $id; | 379 | return $id; |
380 | } | 380 | } |