[Hastymail-cvs] hastymail/html mailbox.php,1.293,1.294
Brought to you by:
sailfrog,
slushpupie
From: <sai...@us...> - 2004-02-24 19:11:53
|
Update of /cvsroot/hastymail/hastymail/html In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24394/html Modified Files: mailbox.php Log Message: workaround for depricated call-time pass by reference Index: mailbox.php =================================================================== RCS file: /cvsroot/hastymail/hastymail/html/mailbox.php,v retrieving revision 1.293 retrieving revision 1.294 diff -u -d -r1.293 -r1.294 --- mailbox.php 18 Feb 2004 05:42:35 -0000 1.293 +++ mailbox.php 24 Feb 2004 18:57:27 -0000 1.294 @@ -154,7 +154,10 @@ /* process message action */ if (isset($hm_input['action'])) { - hm_select_mailbox($imap_stream, &$hm_input['mailbox']); + $tmp_box = hm_select_mailbox($imap_stream, $hm_input['mailbox']); + if (isset($tmp_box) && $tmp_box != $hm_input['mailbox']) { + $hm_input['mailbox'] = $tmp_box; + } $resort = true; if (isset($hm_input['selection_type'])) { /* selected messages */ @@ -211,7 +214,10 @@ /* update counts and check the cache */ $unseen = hm_unseen_status ($imap_stream, $_SESSION['folders']); -hm_select_mailbox($imap_stream, &$hm_input['mailbox']); +$tmp_box = hm_select_mailbox($imap_stream, $hm_input['mailbox']); +if (isset($tmp_box) && $tmp_box != $hm_input['mailbox']) { + $hm_input['mailbox'] = $tmp_box; +} $cache = hm_check_cache($hm_input['mailbox']); /* get the sort information for this mailbox/page */ |