summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortill <till@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-02-16 12:10:37 +0000
committertill <till@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-02-16 12:10:37 +0000
commit9d9366e642396acf493ca99979a969b0f5e5c159 (patch)
tree18e600dc74e84dd132bb4355f446ecb39c7770fd
parent2f984cfd8c8ddcee2391ede63065a2911fba4694 (diff)
* doublechecking the user id is set
git-svn-id: https://svn.roundcube.net/trunk@1094 208e9e7b-5314-0410-a742-e7e81cd9613c
-rw-r--r--roundcubemail/program/include/rcube_user.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/roundcubemail/program/include/rcube_user.inc b/roundcubemail/program/include/rcube_user.inc
index 20c8dd827..47e74620a 100644
--- a/roundcubemail/program/include/rcube_user.inc
+++ b/roundcubemail/program/include/rcube_user.inc
@@ -242,6 +242,9 @@ class rcube_user
if (!$this->ID)
return false;
+ if (!$this->ID || $this->ID == '')
+ return false;
+
$sql_result = $DB->query("SELECT count(*) AS ident_count FROM " .
get_table_name('identities') .
" WHERE user_id = ? AND del != 1",