summaryrefslogtreecommitdiff
path: root/program/include/rcube_user.php
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2011-04-19 20:41:24 +0000
committerthomascube <thomas@roundcube.net>2011-04-19 20:41:24 +0000
commitbbb1427caabba60e4329d4b3653fbf29d5ddddcc (patch)
tree0bc16083f5731593ed6a35a374a34a2e9b6a745d /program/include/rcube_user.php
parent968754b09ebc1b501d0840e8c4eb3d0f617a5080 (diff)
Gracefully shrug on database errors
Diffstat (limited to 'program/include/rcube_user.php')
-rw-r--r--program/include/rcube_user.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/include/rcube_user.php b/program/include/rcube_user.php
index 75faf4728..c9936d619 100644
--- a/program/include/rcube_user.php
+++ b/program/include/rcube_user.php
@@ -288,7 +288,7 @@ class rcube_user
// we'll not delete last identity
if ($sql_arr['ident_count'] <= 1)
- return false;
+ return -1;
$this->db->query(
"UPDATE ".get_table_name('identities').