mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Removed one more notice from SearchForm when nothing was found
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@43508 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
e4d2b1ffa2
commit
81d774fcf7
@ -170,7 +170,9 @@ class SearchForm extends Form {
|
||||
|
||||
foreach($records as $record)
|
||||
$objects[] = new $record['ClassName']($record);
|
||||
$doSet = new DataObjectSet($objects);
|
||||
|
||||
if(isset($objects)) $doSet = new DataObjectSet($objects);
|
||||
else $doSet = new DataObjectSet();
|
||||
|
||||
$doSet->setPageLimits(isset($_GET['start']) ? (int)$_GET['start'] : 0, $numPerPage, $totalCount);
|
||||
return $doSet;
|
||||
|
Loading…
Reference in New Issue
Block a user