mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Casted return of count() to integer.
Count should ALWAYS be integer, not a string.
This commit is contained in:
parent
b7fa2669a8
commit
521b8eefd0
@ -709,7 +709,7 @@ class DataList extends ViewableData implements SS_List, SS_Filterable, SS_Sortab
|
||||
* @return int
|
||||
*/
|
||||
public function count() {
|
||||
return $this->dataQuery->count();
|
||||
return (int)$this->dataQuery->count();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user