diff --git a/lib/WebGUI/SQL/ResultSet.pm b/lib/WebGUI/SQL/ResultSet.pm index a501af54f..a6f648069 100644 --- a/lib/WebGUI/SQL/ResultSet.pm +++ b/lib/WebGUI/SQL/ResultSet.pm @@ -179,13 +179,7 @@ Returns the next row of data in the form of a hash reference. sub hashRef { my $self = shift; - my ($hashRef, %hash); - $hashRef = $self->sth->fetchrow_hashref(); - if (defined $hashRef) { - return $hashRef; - } else { - return {}; - } + return $self->sth->fetchrow_hashref(); }