From 08803929df23a36091c9abf9b55aa6de0b3ec301 Mon Sep 17 00:00:00 2001 From: tipaul Date: Fri, 14 Apr 2006 09:33:56 +0000 Subject: [PATCH] defaulting usernumber to '' (root login) --- C4/Log.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/C4/Log.pm b/C4/Log.pm index 9e5f76cfba..a64720a7f7 100644 --- a/C4/Log.pm +++ b/C4/Log.pm @@ -62,6 +62,7 @@ Adds a record into action_logs table to report the different changes upon the da #' sub logaction{ my ($usernumber,$modulename, $actionname, $objectnumber, $infos)=@_; + $usernumber='' unless $usernumber; my $dbh = C4::Context->dbh; my $sth=$dbh->prepare("Insert into action_logs (timestamp,user,module,action,object,info) values (now(),?,?,?,?,?)"); $sth->execute($usernumber,$modulename,$actionname,$objectnumber,$infos); -- 2.39.5