diff options
author | Aleksander Machniak <alec@alec.pl> | 2013-10-14 09:09:01 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2013-10-14 09:09:01 +0200 |
commit | 899e5944740f5583f2796138f8181a5f6500fee6 (patch) | |
tree | 2e68ada95063a0ecb324ba4da2fb1bc88a8a11a9 /program/lib/Roundcube | |
parent | 5a2d2a6f75b115183459997cc2aa787d9a085fe8 (diff) |
Key duplicate error on postgres uses SQLSTATE=23505
Diffstat (limited to 'program/lib/Roundcube')
-rw-r--r-- | program/lib/Roundcube/rcube_db.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/program/lib/Roundcube/rcube_db.php b/program/lib/Roundcube/rcube_db.php index 08935853a..aaba28172 100644 --- a/program/lib/Roundcube/rcube_db.php +++ b/program/lib/Roundcube/rcube_db.php @@ -456,7 +456,7 @@ class rcube_db { $error = $this->dbh->errorInfo(); - if (empty($this->options['ignore_key_errors']) || $error[0] != '23000') { + if (empty($this->options['ignore_key_errors']) || !in_array($error[0], array('23000', '23505'))) { $this->db_error = true; $this->db_error_msg = sprintf('[%s] %s', $error[1], $error[2]); |