summaryrefslogtreecommitdiff
path: root/program/include
diff options
context:
space:
mode:
authortill <till@php.net>2008-02-16 12:10:37 +0000
committertill <till@php.net>2008-02-16 12:10:37 +0000
commit8779cd097b71d10a58e1724ade73c8c6a49ca12b (patch)
treefe0de3956a7cadb6a7017dc5b3fa796fde4a6167 /program/include
parentcf436eeb7295e4a6baee2de2e409d08b0b56f734 (diff)
* doublechecking the user id is set
Diffstat (limited to 'program/include')
-rw-r--r--program/include/rcube_user.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/program/include/rcube_user.inc b/program/include/rcube_user.inc
index 20c8dd827..47e74620a 100644
--- a/program/include/rcube_user.inc
+++ b/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",