From 8779cd097b71d10a58e1724ade73c8c6a49ca12b Mon Sep 17 00:00:00 2001 From: till Date: Sat, 16 Feb 2008 12:10:37 +0000 Subject: * doublechecking the user id is set --- program/include/rcube_user.inc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'program') 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", -- cgit v1.2.3