From e55f806e5ba30a82c0c03dc1fc53f6e13fffb1bb Mon Sep 17 00:00:00 2001 From: ivan Date: Sun, 6 Aug 2006 08:10:36 +0000 Subject: [PATCH] add confession here to diagnose etxrn's problem better --- FS/FS/svc_acct.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/FS/FS/svc_acct.pm b/FS/FS/svc_acct.pm index aa3e592a3..572a00853 100644 --- a/FS/FS/svc_acct.pm +++ b/FS/FS/svc_acct.pm @@ -1416,6 +1416,8 @@ Returns all RADIUS groups for this account (see L). sub radius_groups { my $self = shift; if ( $self->usergroup ) { + confess "specified usergroup is not an arrayref: ". $self->usergroup + unless ref($self->usergroup) eq 'ARRAY'; #when provisioning records, export callback runs in svc_Common.pm before #radius_usergroup records can be inserted... @{$self->usergroup}; -- 2.11.0