Fixed a bug which would cause the query to return inbox messages to fail if the user wasn't a member of any groups.
This commit is contained in:
parent
96627227c6
commit
0e42cdecfc
1 changed files with 1 additions and 0 deletions
|
|
@ -456,6 +456,7 @@ sub getMessageSql {
|
|||
my $limitHalf = $messageLimit / 2;
|
||||
my $limitQuarter = $messageLimit / 4;
|
||||
my $userGroups = $session->db->quoteAndJoin( $user->getGroupIdsRecursive );
|
||||
$userGroups = "''" if $userGroups eq "";
|
||||
|
||||
# for performance purposes don't use datasets larger than 20000 no matter how man messages are in the inbox
|
||||
my $sql = qq{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue