Fix tables when there is no active accounts
This commit is contained in:
parent
841c1c0fed
commit
545b9573a2
|
@ -68,9 +68,13 @@ sub print_user_table {
|
|||
return "";
|
||||
}
|
||||
|
||||
my $scriptname = basename($0);
|
||||
my $now = DateTime->now;
|
||||
|
||||
print " <tr><td colspan=\"2\">";
|
||||
print $q->start_table ({-CLASS => "sme-border"});
|
||||
|
||||
if (_count_active_users() > 0){
|
||||
print " <tr><td colspan=\"2\">";
|
||||
print $q->start_table ({-CLASS => "sme-border"});
|
||||
print $q->Tr(
|
||||
esmith::cgi::genSmallCell($q, $self->localise('ACTIVE_ACCOUNT'), "header"),
|
||||
esmith::cgi::genSmallCell($q, $self->localise('USER_NAME'), "header"),
|
||||
|
@ -79,9 +83,6 @@ sub print_user_table {
|
|||
esmith::cgi::genSmallCell($q, $self->localise('ACTION'), "header")
|
||||
);
|
||||
|
||||
my $scriptname = basename($0);
|
||||
|
||||
my $now = DateTime->now;
|
||||
foreach my $u (@users) {
|
||||
my $username = $u->key();
|
||||
next unless (($u->prop('PasswordSet') || 'no') eq 'yes');
|
||||
|
|
Loading…
Reference in New Issue