silence warning regarding array_slice() expects parameter 1 to be array when no messages are found, or the retrieval of uids failed somehow

This commit is contained in:
Klaus Leithoff 2011-10-14 07:00:46 +00:00
parent 3c4ec5bab3
commit 6634599014

View File

@ -749,7 +749,7 @@ $j(document).ready(function() {
$rowsFetched['messages'] = count($sR);
if($reverse === true) $sR = array_reverse((array)$sR);
$sR = array_slice($sR,($offset==0?0:$offset-1),$maxMessages); // we need only $maxMessages of uids
$sR = array_slice((array)$sR,($offset==0?0:$offset-1),$maxMessages); // we need only $maxMessages of uids
$sRToFetch = array_slice($sR,0,50); // we fetch only the headers of a subset of the fetched uids
//error_log(__METHOD__.__LINE__.' Rows fetched (UID only):'.count($sR).' Data:'.array2string($sR));
$maxMessages = 50;