[freeside-commits] freeside/FS/FS/part_export sqlradius.pm, 1.49, 1.50
Ivan,,,
ivan at wavetail.420.am
Tue Oct 18 11:10:31 PDT 2011
Update of /home/cvs/cvsroot/freeside/FS/FS/part_export
In directory wavetail.420.am:/tmp/cvs-serv11943
Modified Files:
sqlradius.pm
Log Message:
fix suspensions by svcnum, RT#14398
Index: sqlradius.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_export/sqlradius.pm,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -w -d -r1.49 -r1.50
--- sqlradius.pm 17 Oct 2011 23:53:18 -0000 1.49
+++ sqlradius.pm 18 Oct 2011 18:10:28 -0000 1.50
@@ -358,7 +358,7 @@
if (!$userspec && exists($reasonmap{$r->reason}));
}
my $suspend_user;
- if ($userspec =~ /^d+$/ ){
+ if ($userspec =~ /^\d+$/ ){
$suspend_user = qsearchs( 'svc_acct', { 'svcnum' => $userspec } );
}elsif ($userspec =~ /^\S+\@\S+$/){
my ($username,$domain) = split(/\@/, $userspec);
More information about the freeside-commits
mailing list