mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 06:05:56 +00:00
mlanthaler: Bugfix: "if($className == null); $className = $this->stat('subitem_class');" had no effect because of the semicolon after the if-statement.
(merged from branches/gsoc) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@41806 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
c2f57b75de
commit
ad3aed7930
@ -181,7 +181,7 @@ class SecurityAdmin extends LeftAndMain implements PermissionProvider {
|
|||||||
function addmember($className=null) {
|
function addmember($className=null) {
|
||||||
$data = $_REQUEST;
|
$data = $_REQUEST;
|
||||||
unset($data['ID']);
|
unset($data['ID']);
|
||||||
if($className == null);
|
if($className == null)
|
||||||
$className = $this->stat('subitem_class');
|
$className = $this->stat('subitem_class');
|
||||||
$record = new $className();
|
$record = new $className();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user