BUGFIX: when the total number of rows is 0 the pagination says 1 to 0 of 0

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@70565 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Saophalkun Ponlu 2009-01-21 21:08:02 +00:00 committed by Sam Minnee
parent 847e079c55
commit 5ddb00dfa3

View File

@ -801,6 +801,7 @@ JS
}
function FirstItem() {
if ($this->TotalCount() < 1) return 0;
return isset($_REQUEST['ctf'][$this->Name()]['start']) ? $_REQUEST['ctf'][$this->Name()]['start'] + 1 : 1;
}