mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 23:29:31 +01:00
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:
parent
3c4ec5bab3
commit
6634599014
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user