Hello, I've finded a bug in the private message module, when a user got his first message inbox, the big message popup dont appears, on the other side if he got more than one message inbox the popup appears !
Its a problem for new members !
Can you tell me the way to fix it ! I've searched in user.php in function yet, but the code looks to be right, I dont really understand that bug...
Blog posts: 11
Added downloads: 2 Comments: 18 Forum posts: 573
Its a problem for new members !
Can you tell me the way to fix it !
Added downloads: 2
Comments: 18
Forum posts: 573
functions/user.php, change lines 182 and 183:
if ( !isset ( $pms [ 0 ] [ 'total' ] ) ) $pms [ 0 ] [ 'total' ] = 0;
if ( !isset ( $pms [ 1 ] [ 'total' ] ) ) $pms [ 1 ] [ 'total' ] = 0;
to this:
if ( !isset ( $pms [ 0 ] [ 'total' ] ) ) $pms [ 0 ] [ 'total' ] = 0;
if ( !isset ( $pms [ 1 ] [ 'total' ] ) )
{
$pms [ 1 ] [ 'total' ] = $pms [ 0 ] [ 'total' ];
$pms [ 0 ] [ 'total' ] = 0;
}