create new domain only if necessary
This commit is contained in:
parent
81b6cd6107
commit
5a735e1c5a
|
@ -146,7 +146,12 @@ if ($_POST['add_suff'] || $_POST['cancel']) {
|
|||
if ($_SESSION['config']->is_samba3()) {
|
||||
$doms = $_SESSION['ldap']->search_domains($_SESSION['config']->get_domainSuffix());
|
||||
echo "<p> </p>\n";
|
||||
if (sizeof($doms) == 0) {
|
||||
echo "<a href=\"domain.php?action=new\">" . _("No domains found, please create one.") . "</a>\n";
|
||||
}
|
||||
else {
|
||||
echo "<a href=\"lists/listusers.php\">" . _("User list") . "</a>\n";
|
||||
}
|
||||
echo "</body></html>\n";
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Reference in New Issue