Bug #19660 » 9861.diff
typo3/class.db_list_extra.inc (Arbeitskopie) | ||
---|---|---|
$prevUid = 0;
|
||
$prevPrevUid = 0;
|
||
if (preg_match('/([0-9]+),([0-9]+)/', $queryParts['LIMIT'], $queryHits)) {
|
||
$queryPrev = $queryParts;
|
||
$queryPrev['SELECT'] = 'uid';
|
||
$queryPrev['LIMIT'] = max(0, $queryHits[1] - 2) . ',2';
|
||
$_result = $GLOBALS['TYPO3_DB']->exec_SELECT_queryArray($queryPrev);
|
||
if ($_row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($_result)) {
|
||
$prevUid = $_row['uid'];
|
||
}
|
||
if ($_row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($_result)) {
|
||
$prevPrevUid = $prevUid;
|
||
$prevUid = $_row['uid'];
|
||
}
|
||
$GLOBALS['TYPO3_DB']->sql_free_result($_result);
|
||
}
|
||
$accRows = array(); // Accumulate rows here
|
||
while($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($result)) {
|
||