Permalink
Browse files

Don't use protected property rcube_db::$db_error

  • Loading branch information...
1 parent 91f2271 commit 159691e7b1174146fc1c839288e5dd0162d3e6f9 @alecpl alecpl committed Jun 19, 2012
Showing with 3 additions and 3 deletions.
  1. +1 −1 installer/test.php
  2. +2 −2 program/include/rcube_contacts.php
View
@@ -167,7 +167,7 @@
// test database
if ($db_working) {
$db_read = $DB->query("SELECT count(*) FROM {$RCI->config['db_table_users']}");
- if ($DB->db_error) {
+ if ($DB->is_error()) {
$RCI->fail('DB Schema', "Database not initialized");
echo '<p><input type="submit" name="initdb" value="Initialize database" /></p>';
$db_working = false;
@@ -934,8 +934,8 @@ function add_to_group($group_id, $ids)
$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++;
}

0 comments on commit 159691e

Please sign in to comment.