51 $q =
"SELECT count(*) as invitations FROM chat_invitations WHERE guest_id = ".$ilDB->quote($a_user_id).
" ".
52 "AND guest_informed = 0 ".
53 "AND invitation_time > ".(time() - 2 * 60 * 60).
" ";
56 return $row->invitations;
68 $query =
"SELECT * FROM chat_invitations
69 WHERE guest_id = ".$ilDB->quote($a_user_id).
"
70 AND guest_informed = 0
71 AND invitation_time > ".(time() - 2 * 60 * 60).
" ";
72 $res = $ilDB->query($query);
81 return is_array($rows) ? $rows : array();