updated warning if no objects were found
This commit is contained in:
parent
0e30ef10f6
commit
bb00ddc760
|
@ -82,15 +82,14 @@ if ($sr) {
|
|||
$info = ldap_get_entries($_SESSION["ldap"]->server, $sr);
|
||||
ldap_free_result($sr);
|
||||
if ($info["count"] == 0) echo ("<br><br><font color=\"red\"><b>" . _("No Grous found!") . "</b></font><br><br>");
|
||||
}
|
||||
else echo ("<br><br><font color=\"red\"><b>" . _("LDAP Search failed! Please check your preferences. <br> No Groups found!") . "</b></font><br><br>");
|
||||
|
||||
echo ("<form action=\"listgroups.php?type=group\" method=\"post\">\n");
|
||||
|
||||
// delete first array entry which is "count"
|
||||
array_shift($info);
|
||||
// sort rows by sort column ($list)
|
||||
usort($info, "cmp_array");
|
||||
}
|
||||
else echo ("<br><br><font color=\"red\"><b>" . _("LDAP Search failed! Please check your preferences. <br> No Groups found!") . "</b></font><br><br>");
|
||||
|
||||
echo ("<form action=\"listgroups.php?type=group\" method=\"post\">\n");
|
||||
|
||||
// print group table header
|
||||
echo "<table rules=\"all\" class=\"grouplist\" width=\"100%\">\n";
|
||||
|
|
|
@ -65,15 +65,14 @@ if ($sr) {
|
|||
$info = ldap_get_entries($_SESSION["ldap"]->server, $sr);
|
||||
ldap_free_result($sr);
|
||||
if ($info["count"] == 0) echo ("<br><br><font color=\"red\"><b>" . _("No Samba Hosts found!") . "</b></font><br><br>");
|
||||
}
|
||||
else echo ("<br><br><font color=\"red\"><b>" . _("LDAP Search failed! Please check your preferences. <br> No Samba Hosts found!") . "</b></font><br><br>");
|
||||
|
||||
echo ("<form action=\"../account.php?type=host\" method=\"post\">\n");
|
||||
|
||||
// delete first array entry which is "count"
|
||||
array_shift($info);
|
||||
// sort rows by sort column ($list)
|
||||
usort($info, "cmp_array");
|
||||
}
|
||||
else echo ("<br><br><font color=\"red\"><b>" . _("LDAP Search failed! Please check your preferences. <br> No Samba Hosts found!") . "</b></font><br><br>");
|
||||
|
||||
echo ("<form action=\"../account.php?type=host\" method=\"post\">\n");
|
||||
|
||||
// print host table header
|
||||
echo "<table rules=\"all\" class=\"hostlist\" width=\"100%\">\n";
|
||||
|
|
Loading…
Reference in New Issue