[freeside-commits] branch FREESIDE_3_BRANCH updated. 6a0e1441b1cde044f6a43596551be02dba2074ba

Mark Wells mark at 420.am
Fri Jun 26 17:16:46 PDT 2015


The branch, FREESIDE_3_BRANCH has been updated
       via  6a0e1441b1cde044f6a43596551be02dba2074ba (commit)
      from  d39cdcea2c8b5f811a5f84366b4bc03f5beb3a66 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 6a0e1441b1cde044f6a43596551be02dba2074ba
Author: Mark Wells <mark at freeside.biz>
Date:   Fri Jun 26 15:55:56 2015 -0700

    only try to log activity when there's an authenticated user, #36856

diff --git a/FS/FS/access_user_log.pm b/FS/FS/access_user_log.pm
index 884d250..9e7f7a0 100644
--- a/FS/FS/access_user_log.pm
+++ b/FS/FS/access_user_log.pm
@@ -75,6 +75,8 @@ Adds a log entry for PATH for the current user and timestamp.
 sub insert_new_path {
   my( $class, $path ) = @_;
 
+  return '' unless defined $FS::CurrentUser::CurrentUser;
+
   my $self = $class->new( {
     'usernum' => $FS::CurrentUser::CurrentUser->usernum,
     'path'    => $path,

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/access_user_log.pm |    2 ++
 1 file changed, 2 insertions(+)




More information about the freeside-commits mailing list