From: stekkel Date: Fri, 16 Aug 2002 10:47:30 +0000 (+0000) Subject: allow_call_time_pass_reference = Off X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=44369a309cd511c47403f37976a5202a1239dee7 allow_call_time_pass_reference = Off git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3321 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/functions/mailbox_display.php b/functions/mailbox_display.php index 90a644bc..2fc02b83 100644 --- a/functions/mailbox_display.php +++ b/functions/mailbox_display.php @@ -433,7 +433,9 @@ function showMessagesForMailbox($imapConnection, $mailbox, $num_msgs, } // switch } /* if exists > 0 */ - $end_msg = getEndMessage(&$start_msg, $show_num, $num_msgs); + $res = getEndMessage($start_msg, $show_num, $num_msgs); + $start_msg = $res[0]; + $end_msg = $res[1]; $paginator_str = get_paginator_str($mailbox, $start_msg, $end_msg, $num_msgs, $show_num, $sort); @@ -565,7 +567,9 @@ function displayMessageArray($imapConnection, $num_msgs, $start_msg, $indent_array, $thread_sort_messages, $allow_server_sort, $server_sort_order, $PHP_SELF; - $end_msg = getEndMessage(&$start_msg, $show_num, $num_msgs); + $res = getEndMessage($start_msg, $show_num, $num_msgs); + $start_msg = $res[0]; + $end_msg = $res[1]; $urlMailbox = urlencode($mailbox); @@ -1237,7 +1241,7 @@ function getEndMessage($start_msg, $show_num, $num_msgs) { $start_msg = 1; } } - return $end_msg; + return (array($start_msg,$end_msg)); } function handleAsSent($mailbox) {