From b3a0d75a40cfeec8e14d7092b4cf23763363b45a 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 Signed-off-by: Marcel de Rooy Signed-off-by: Tomas Cohen Arazi --- 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.39.5