diff --git a/lam/templates/lists/listgroups.php b/lam/templates/lists/listgroups.php
index dd03ef27..13bfa034 100644
--- a/lam/templates/lists/listgroups.php
+++ b/lam/templates/lists/listgroups.php
@@ -23,7 +23,8 @@ $Id$
*/
include_once ("../../lib/config.inc");
-include_once("../../lib/ldap.inc");
+include_once ("../../lib/ldap.inc");
+include_once ("../../lib/status.inc");
// start session
session_save_path("../../sess");
@@ -81,13 +82,13 @@ $sr = @ldap_search($_SESSION["ldap"]->server(),
if ($sr) {
$info = ldap_get_entries($_SESSION["ldap"]->server, $sr);
ldap_free_result($sr);
- if ($info["count"] == 0) echo ("
" . _("No Grous found!") . "
");
+ if ($info["count"] == 0) StatusMessage("WARN", "", _("No Groups found!"));
// delete first array entry which is "count"
array_shift($info);
// sort rows by sort column ($list)
usort($info, "cmp_array");
}
-else echo ("
" . _("LDAP Search failed! Please check your preferences.
No Groups found!") . "
");
+else StatusMessage("ERROR", _("LDAP Search failed! Please check your preferences."), _("No Groups found!"));
echo ("