summaryrefslogtreecommitdiff
path: root/roundcubemail/program/include/rcube_user.php
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-04-19 20:41:24 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-04-19 20:41:24 +0000
commit21b3b8c5dcd085bd1040add692b8fd6b09b33904 (patch)
tree592f05cce72f10580c3e69a7a5a0d6fa532ef563 /roundcubemail/program/include/rcube_user.php
parent47dcc5411ec51b6e06fa3ae68e3fd0375b88df08 (diff)
Gracefully shrug on database errors
git-svn-id: https://svn.roundcube.net/trunk@4668 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include/rcube_user.php')
-rw-r--r--roundcubemail/program/include/rcube_user.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/roundcubemail/program/include/rcube_user.php b/roundcubemail/program/include/rcube_user.php
index 75faf4728..c9936d619 100644
--- a/roundcubemail/program/include/rcube_user.php
+++ b/roundcubemail/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').