diff --git a/modules/formulize/class/forms.php b/modules/formulize/class/forms.php index 6269bfe32..31c87d6b4 100755 --- a/modules/formulize/class/forms.php +++ b/modules/formulize/class/forms.php @@ -1257,7 +1257,7 @@ function getPerGroupFilterWhereClause($fid, $formAlias="", $groupids=false) { // ensure filterSettings[0] is an array of element handles! (will be stored as IDs but we need the handles for lower code to work) if(!isMetaDataField($filterSettings[0][$i]) AND $elementObject = $element_handler->get($filterSettings[0][$i])) { $filterSettings[0][$i] = $elementObject->getVar('ele_handle'); - } else { + } elseif(!isMetaDataField($filterSettings[0][$i])) { print "Formulize Error: a per-group permission filter on form $fid is referencing an element that does not exist. Was it renamed or deleted?
"; exit(); // can't invoke intended per-group permissions, must fail out rather than risk showing data user should not have access to :( }