Commit 900aec6f authored by Keith Jolley's avatar Keith Jolley
Browse files

Rafactor SQL.

parent 11d282fe
......@@ -706,7 +706,7 @@ sub _next_id_profiles {
sub id_exists {
my ( $self, $id ) = @_;
my $num = $self->{'datastore'}->run_simple_query( "SELECT COUNT(*) FROM $self->{'system'}->{'view'} WHERE id=?", $id )->[0];
my $num = $self->{'datastore'}->run_query( "SELECT EXISTS(SELECT * FROM $self->{'system'}->{'view'} WHERE id=?)", $id );
return $num;
}
......
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