|
@@ 1730-1737 (lines=8) @@
|
| 1727 |
|
$this->trigger_events('extra_where'); |
| 1728 |
|
$this->db->update($this->tables['users'], $data, array('id' => $user->id)); |
| 1729 |
|
|
| 1730 |
|
if ($this->db->trans_status() === FALSE) |
| 1731 |
|
{ |
| 1732 |
|
$this->db->trans_rollback(); |
| 1733 |
|
|
| 1734 |
|
$this->trigger_events(array('post_update_user', 'post_update_user_unsuccessful')); |
| 1735 |
|
$this->set_error('update_unsuccessful'); |
| 1736 |
|
return FALSE; |
| 1737 |
|
} |
| 1738 |
|
|
| 1739 |
|
$this->db->trans_commit(); |
| 1740 |
|
|
|
@@ 1765-1771 (lines=7) @@
|
| 1762 |
|
$this->db->delete($this->tables['users'], array('id' => $id)); |
| 1763 |
|
|
| 1764 |
|
|
| 1765 |
|
if ($this->db->trans_status() === FALSE) |
| 1766 |
|
{ |
| 1767 |
|
$this->db->trans_rollback(); |
| 1768 |
|
$this->trigger_events(array('post_delete_user', 'post_delete_user_unsuccessful')); |
| 1769 |
|
$this->set_error('delete_unsuccessful'); |
| 1770 |
|
return FALSE; |
| 1771 |
|
} |
| 1772 |
|
|
| 1773 |
|
$this->db->trans_commit(); |
| 1774 |
|
|
|
@@ 2086-2092 (lines=7) @@
|
| 2083 |
|
// remove the group itself |
| 2084 |
|
$this->db->delete($this->tables['groups'], array('id' => $group_id)); |
| 2085 |
|
|
| 2086 |
|
if ($this->db->trans_status() === FALSE) |
| 2087 |
|
{ |
| 2088 |
|
$this->db->trans_rollback(); |
| 2089 |
|
$this->trigger_events(array('post_delete_group', 'post_delete_group_unsuccessful')); |
| 2090 |
|
$this->set_error('group_delete_unsuccessful'); |
| 2091 |
|
return FALSE; |
| 2092 |
|
} |
| 2093 |
|
|
| 2094 |
|
$this->db->trans_commit(); |
| 2095 |
|
|