diff --git a/core/model/ComponentSet.php b/core/model/ComponentSet.php index a84b0c164..1aacf6270 100755 --- a/core/model/ComponentSet.php +++ b/core/model/ComponentSet.php @@ -73,6 +73,10 @@ class ComponentSet extends DataObjectSet { $parentField = $this->ownerClass . 'ID'; $childField = ($this->childClass == $this->ownerClass) ? 'ChildID' : ($this->childClass . 'ID'); $result = array(); + + if(!is_numeric($childID)) { + user_error('ComponentSet::getExtraData() passed a non-numeric child ID', E_USER_ERROR); + } if(!$componentName) return false;