phpBB

Code Changes

File: phpbb/template/twig/extension.php

  Unmodified   Added   Modified   Removed
Line 146Line 146
			//  of items to grab (length)

// Start must always be the actual starting number for this calculation (not negative)

			//  of items to grab (length)

// Start must always be the actual starting number for this calculation (not negative)

			$start = ($start < 0) ? sizeof($item) + $start : $start;

			$start = ($start < 0) ? count($item) + $start : $start;

			$end = $end - $start;
}


			$end = $end - $start;
}