diff --git a/lam/templates/lists/listgroups.php b/lam/templates/lists/listgroups.php index a6070749..ce2bf6a4 100644 --- a/lam/templates/lists/listgroups.php +++ b/lam/templates/lists/listgroups.php @@ -136,7 +136,11 @@ if (! $_GET['norefresh']) { // sort rows by sort column ($sort) usort($grp_info, "cmp_array"); } - else StatusMessage("ERROR", _("LDAP Search failed! Please check your preferences."), _("No Groups found!")); + else { + $grp_info = array(); + $_SESSION['grp_info'] = array(); + StatusMessage("ERROR", _("LDAP Search failed! Please check your preferences."), _("No Groups found!")); + } } else { if (sizeof($grp_info) == 0) StatusMessage("WARN", "", _("No Groups found!")); diff --git a/lam/templates/lists/listhosts.php b/lam/templates/lists/listhosts.php index 733a4da1..e7834fcc 100644 --- a/lam/templates/lists/listhosts.php +++ b/lam/templates/lists/listhosts.php @@ -142,7 +142,11 @@ if (! $_GET['norefresh']) { // sort rows by sort column ($sort) usort($hst_info, "cmp_array"); } - else StatusMessage("ERROR", _("LDAP Search failed! Please check your preferences."), _("No Samba Hosts found!")); + else { + $hst_info = array(); + $_SESSION['hst_info'] = array(); + StatusMessage("ERROR", _("LDAP Search failed! Please check your preferences."), _("No Samba Hosts found!")); + } } else { if (sizeof($hst_info) == 0) StatusMessage("WARN", "", _("No Samba Hosts found!")); diff --git a/lam/templates/lists/listusers.php b/lam/templates/lists/listusers.php index 498e9b9d..abb68ea7 100644 --- a/lam/templates/lists/listusers.php +++ b/lam/templates/lists/listusers.php @@ -195,6 +195,8 @@ else { $_SESSION["userlist"] = $userinfo; } else { + $_SESSION['userlist'] = array(); + $userinfo = array(); StatusMessage("ERROR", _("LDAP Search failed! Please check your preferences."), _("No Users found!"));