projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9531335
)
only try to log activity when there's an authenticated user, #36856
author
Mark Wells
<mark@freeside.biz>
Fri, 26 Jun 2015 22:55:56 +0000
(15:55 -0700)
committer
Mark Wells
<mark@freeside.biz>
Fri, 26 Jun 2015 22:55:56 +0000
(15:55 -0700)
FS/FS/access_user_log.pm
patch
|
blob
|
history
diff --git
a/FS/FS/access_user_log.pm
b/FS/FS/access_user_log.pm
index
884d250
..
9e7f7a0
100644
(file)
--- 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,