Casted return of count() to integer.

Count should ALWAYS be integer, not a string.
This commit is contained in:
Nemanja Karadzic 2014-10-12 06:53:40 +02:00
parent b7fa2669a8
commit 521b8eefd0

View File

@ -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();
}
/**