diff --git a/bureau/admin/adm_list.php b/bureau/admin/adm_list.php index 7d7557b0..68b1442e 100644 --- a/bureau/admin/adm_list.php +++ b/bureau/admin/adm_list.php @@ -47,7 +47,7 @@ getFields($fields); if ($short!=-1) { $mem->adminpref($short); $mem->user["admlist"]=$short; - } +} $subadmin=variable_get("subadmin_restriction", 0); @@ -60,38 +60,34 @@ if ($show=="all" && !$subadmin==1 && $cuid != 2000) { } if ($pattern && $pattern_type) { - $r=$admin->get_list($show == 'all' ? 1 : 0, $creator, $pattern, $pattern_type); + $r=$admin->get_list($show == 'all' ? 1 : 0, $creator, $pattern, $pattern_type); +} else { + $r = FALSE; } -else - $r = FALSE; ?> +
-
- ' , $error, ''; } -if (!$r) { - __("Enter a pattern for login list"); - exit (0); -} + ?> +()
@@ -113,20 +109,19 @@ if($show != 'all') { } echo ""; } -} else { +} else { // if show != all echo '' . _('List only my accounts') . '
'; -} +} }// END ($subadmin==1 || $cuid==2000) -if (!is_array($r)) { - echo '' , _("No account defined for now"), '
'; -} else { +if (!is_array($r) || empty($r) ) { + echo ''._("No account defined for now").'
'; + include('foot'); +} ?> - -