diff options
-rw-r--r-- | lib/ASM/Log.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ASM/Log.pm b/lib/ASM/Log.pm index 45d5531..8c388e9 100644 --- a/lib/ASM/Log.pm +++ b/lib/ASM/Log.pm @@ -121,7 +121,7 @@ sub actionlog byhost => $byhost, bygecos => $bygecos, byaccount => $byaccount, - })->id; + })->id if defined $::db; # $::sn{ow} looks like: #$VAR1 = { # "account" => "afterdeath", @@ -175,7 +175,7 @@ sub incident level => $risk, id => $id, reason => $reason, - }); + }) if defined $::db; return $uuid; } |