Diferior CMS on steroids
+2447 / 1946625 ( online 10 )

Private MSG error


Forum posts: 98
p2pmylife (Talks a lot) @ 09 02 24 - 18:45:53 (edited 09 02 24 - 18:46:09)
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...
Avatar
Blog posts: 11
Added downloads: 2
Comments: 18
Forum posts: 572
UnrealX (Lead code monkey) @ 09 02 24 - 18:57:02 (edited 09 02 24 - 18:57:35)
Yeah, that's a known bug.
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;
}
Forum posts: 98
p2pmylife (Talks a lot) @ 09 02 24 - 19:03:36
Ok that works ! Thank you !