summaryrefslogtreecommitdiff
path: root/program/include
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-06-19 12:20:27 +0200
committerAleksander Machniak <alec@alec.pl>2012-06-19 12:20:27 +0200
commit159691e7b1174146fc1c839288e5dd0162d3e6f9 (patch)
tree5f465ff0d86adc3beff8de797c09f6e79407baa5 /program/include
parent91f2271fac29340b5eee3bb6657456bd5d161548 (diff)
Don't use protected property rcube_db::$db_error
Diffstat (limited to 'program/include')
-rw-r--r--program/include/rcube_contacts.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/program/include/rcube_contacts.php b/program/include/rcube_contacts.php
index 6984b49cc..534a65cb9 100644
--- a/program/include/rcube_contacts.php
+++ b/program/include/rcube_contacts.php
@@ -934,8 +934,8 @@ class rcube_contacts extends rcube_addressbook
$contact_id
);
- if ($this->db->db_error)
- $this->set_error(self::ERROR_SAVING, $this->db->db_error_msg);
+ if ($error = $this->db->is_error())
+ $this->set_error(self::ERROR_SAVING, $error);
else
$added++;
}