BUG: Fix grid field rendering when the list is null

This commit is contained in:
ajshort 2013-03-09 01:04:51 +11:00
parent b8e5ebb9e3
commit a965d3b374

View File

@ -326,7 +326,7 @@ class GridField extends FormField {
}
}
$total = $list->count();
$total = count($list);
if($total > 0) {
$rows = array();
foreach($list as $idx => $record) {