Commit dec50cf9 authored by Keith Jolley's avatar Keith Jolley

Only display users with id>0 (id-0 is used as a setup user).

parent c8dfe267
......@@ -208,7 +208,7 @@ sub print_content {
}
}
}
$qry = "select id,user_name,first_name,surname from users order by surname";
$qry = "select id,user_name,first_name,surname from users WHERE id>0 order by surname";
$sql = $self->{'db'}->prepare($qry);
eval { $sql->execute(); };
if ($@) {
......
......@@ -422,7 +422,7 @@ header for your spreadsheet</a> - use Paste special &rarr; text to paste the dat
</ul>
HTML
print $q->start_form;
my $qry = "select id,user_name,first_name,surname from users order by surname";
my $qry = "select id,user_name,first_name,surname from users WHERE id> 0 order by surname";
my $sql = $self->{'db'}->prepare($qry);
eval { $sql->execute(); };
if ($@) {
......
......@@ -223,7 +223,7 @@ sub print_content {
if ( !$q->param('sent') ) {
print "<p>Update your record as required - required fields are marked with an exclamation mark (!):</p>\n";
}
$qry = "select id,user_name,first_name,surname from users order by surname";
$qry = "select id,user_name,first_name,surname from users WHERE id>0 order by surname";
$sql = $self->{'db'}->prepare($qry);
eval { $sql->execute(); };
if ($@) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment