FIX Cast shortcode document ID as int

This commit is contained in:
Robbie Averill 2017-12-07 16:41:52 +13:00
parent bcf2ac9757
commit 046047e49f
1 changed files with 2 additions and 0 deletions

View File

@ -39,10 +39,12 @@ class ShortCodeRelationFinder
} }
/** /**
* @param int $number
* @return DataList * @return DataList
*/ */
public function getList($number) public function getList($number)
{ {
$number = (int) $number;
$list = DataList::create('SiteTree'); $list = DataList::create('SiteTree');
$where = array(); $where = array();
$fields = $this->getShortCodeFields('SiteTree'); $fields = $this->getShortCodeFields('SiteTree');