]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - inc/poche/Database.class.php
postgres sequence error fix, issue #602
[github/wallabag/wallabag.git] / inc / poche / Database.class.php
index 6244df887f1e3b590596319ad40ea9c68a593ac5..a80eea97a0eabf784f9760ac138925a3925f1580 100755 (executable)
@@ -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;
     }