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:
Ingo Schommer 2007-09-14 19:40:56 +00:00
parent c2f57b75de
commit ad3aed7930

View File

@ -181,7 +181,7 @@ class SecurityAdmin extends LeftAndMain implements PermissionProvider {
function addmember($className=null) {
$data = $_REQUEST;
unset($data['ID']);
if($className == null);
if($className == null)
$className = $this->stat('subitem_class');
$record = new $className();