fixed another PHP notice
This commit is contained in:
parent
1e53b1bb16
commit
58081d88ff
|
@ -228,39 +228,41 @@ class sambaGroupMapping extends baseModule {
|
||||||
);
|
);
|
||||||
// upload fields
|
// upload fields
|
||||||
// search existing Samba 3 domains
|
// search existing Samba 3 domains
|
||||||
if ($_SESSION['loggedIn']) $domains = search_domains($_SESSION['config']->get_domainSuffix());
|
if ($_SESSION['loggedIn']) {
|
||||||
$domainNames = array();
|
$domains = search_domains($_SESSION['config']->get_domainSuffix());
|
||||||
for ($i = 0; $i < sizeof($domains); $i++) $domainNames[] = $domains[$i]->name;
|
$domainNames = array();
|
||||||
$return['upload_columns'] = array(
|
for ($i = 0; $i < sizeof($domains); $i++) $domainNames[] = $domains[$i]->name;
|
||||||
array(
|
$return['upload_columns'] = array(
|
||||||
'name' => 'sambaGroupMapping_domain',
|
array(
|
||||||
'description' => _('Samba domain name'),
|
'name' => 'sambaGroupMapping_domain',
|
||||||
'help' => 'sambaDomainName',
|
'description' => _('Samba domain name'),
|
||||||
'example' => $domainNames[0],
|
'help' => 'sambaDomainName',
|
||||||
'values' => implode(", ", $domainNames),
|
'example' => $domainNames[0],
|
||||||
'required' => true
|
'values' => implode(", ", $domainNames),
|
||||||
),
|
'required' => true
|
||||||
array(
|
),
|
||||||
'name' => 'sambaGroupMapping_name',
|
array(
|
||||||
'description' => _('Samba display name'),
|
'name' => 'sambaGroupMapping_name',
|
||||||
'help' => 'displayName',
|
'description' => _('Samba display name'),
|
||||||
'example' => _('Domain administrators')
|
'help' => 'displayName',
|
||||||
),
|
'example' => _('Domain administrators')
|
||||||
array(
|
),
|
||||||
'name' => 'sambaGroupMapping_rid',
|
array(
|
||||||
'description' => _('Samba RID number'),
|
'name' => 'sambaGroupMapping_rid',
|
||||||
'help' => 'rid',
|
'description' => _('Samba RID number'),
|
||||||
'example' => _('Domain Admins')
|
'help' => 'rid',
|
||||||
),
|
'example' => _('Domain Admins')
|
||||||
array(
|
),
|
||||||
'name' => 'sambaGroupMapping_groupType',
|
array(
|
||||||
'description' => _('Samba group type'),
|
'name' => 'sambaGroupMapping_groupType',
|
||||||
'help' => 'type',
|
'description' => _('Samba group type'),
|
||||||
'values' => implode(", ", array_keys($this->sambaGroupTypes) + $this->sambaGroupTypes),
|
'help' => 'type',
|
||||||
'example' => '2'
|
'values' => implode(", ", array_keys($this->sambaGroupTypes) + $this->sambaGroupTypes),
|
||||||
)
|
'example' => '2'
|
||||||
);
|
)
|
||||||
$return['upload_preDepends'] = array('posixGroup');
|
);
|
||||||
|
$return['upload_preDepends'] = array('posixGroup');
|
||||||
|
}
|
||||||
// help Entries
|
// help Entries
|
||||||
$return['help'] = array(
|
$return['help'] = array(
|
||||||
'displayName' => array(
|
'displayName' => array(
|
||||||
|
|
Loading…
Reference in New Issue