From b71b740e7480acfd2750147f788f6e54584f99f9 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Fri, 29 Jul 2022 06:39:21 +0000 Subject: [PATCH] Bug 30984: (QA follow-up) Ternary formatting style Content-Type: text/plain; charset=utf-8 Signed-off-by: Marcel de Rooy --- C4/Log.pm | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/C4/Log.pm b/C4/Log.pm index b38fb9c163..05a81f1a26 100644 --- a/C4/Log.pm +++ b/C4/Log.pm @@ -90,10 +90,9 @@ sub logaction { } } - my $script = - $interface eq 'cron' ? basename($0) - : $interface eq 'commandline' ? basename($0) - : undef; + my $script = ( $interface eq 'cron' or $interface eq 'commandline' ) + ? basename($0) + : undef; my $dbh = C4::Context->dbh; my $sth=$dbh->prepare("Insert into action_logs (timestamp,user,module,action,object,info,interface,script) values (now(),?,?,?,?,?,?,?)"); -- 2.20.1