|
From: Bart v. B. <ba...@us...> - 2002-01-14 20:16:13
|
Update of /cvsroot/phpbb/phpBB2
In directory usw-pr-cvs1:/tmp/cvs-serv18133
Modified Files:
privmsg.php
Log Message:
Fixed problem with msg v.s. msgs when deleting (#503157)
Index: privmsg.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/privmsg.php,v
retrieving revision 1.72
retrieving revision 1.73
diff -C2 -r1.72 -r1.73
*** privmsg.php 2001/12/29 16:19:56 1.72
--- privmsg.php 2002/01/14 20:16:09 1.73
***************
*** 581,584 ****
--- 581,589 ----
header("Location: " . append_sid("login.$phpEx?redirect=privmsg.$phpEx&folder=inbox", true));
}
+ if( isset($mark_list) && !is_array($mark_list) )
+ {
+ // Set to empty array instead of '0' if nothing is selected.
+ $mark_list = array();
+ }
if( !$confirm )
***************
*** 602,606 ****
$template->assign_vars(array(
"MESSAGE_TITLE" => $lang['Information'],
! "MESSAGE_TEXT" => ( count($mark_list) == 1 ) ? $lang['Confirm_delete_pm'] : $lang['Confirm_delete_pms'],
"L_YES" => $lang['Yes'],
--- 607,611 ----
$template->assign_vars(array(
"MESSAGE_TITLE" => $lang['Information'],
! "MESSAGE_TEXT" => ( count($mark_list) == 1) ? $lang['Confirm_delete_pm'] : $lang['Confirm_delete_pms'],
"L_YES" => $lang['Yes'],
|