mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
elofgren: Add 2 needed isset() calls: in forms/Form.php and security/Member.php (merged from branches/gsoc)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41770 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
7b3f754add
commit
f3018529ac
@ -567,7 +567,7 @@ class Form extends ViewableData {
|
||||
if(isset($tableFieldName) && isset($subFieldName) && is_a($fields[$tableFieldName], 'TableField')) {
|
||||
$field = $fields[$tableFieldName]->getField($subFieldName, $fieldName);
|
||||
return $field->$methodName();
|
||||
} else if($fields[$fieldName]) {
|
||||
} else if(isset($fields[$fieldName])) {
|
||||
return $fields[$fieldName]->$methodName();
|
||||
} else {
|
||||
user_error("Form::callfieldmethod() Field '$fieldName' not found", E_USER_ERROR);
|
||||
|
@ -290,7 +290,7 @@ class Member extends DataObject {
|
||||
|
||||
$table = "Group_Members";
|
||||
|
||||
if($collatedGroups) {
|
||||
if(isset($collatedGroups)) {
|
||||
$collatedGroups = implode(", ", array_unique($collatedGroups));
|
||||
|
||||
$result = singleton('Group')->instance_get("`ID` IN ($collatedGroups)", "ID", "", "", "Member_GroupSet");
|
||||
|
Loading…
Reference in New Issue
Block a user