fix big in RADIUS session viewing when using an ignored-accounting export
authorivan <ivan>
Wed, 6 Oct 2004 12:37:10 +0000 (12:37 +0000)
committerivan <ivan>
Wed, 6 Oct 2004 12:37:10 +0000 (12:37 +0000)
FS/FS/part_export/sqlradius.pm

index 85e5969..5eddd3a 100644 (file)
@@ -381,7 +381,7 @@ sub usage_sessions {
 
   $end ||= 2147483647;
 
 
   $end ||= 2147483647;
 
-  return () if $self->option('ignore_accounting');
+  return [] if $self->option('ignore_accounting');
 
   my $dbh = sqlradius_connect( map $self->option($_),
                                    qw( datasrc username password ) );
 
   my $dbh = sqlradius_connect( map $self->option($_),
                                    qw( datasrc username password ) );