From 1fe48f965cb068bf707868600670a1d19fa09da2 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 (cherry picked from commit b3a0d75a40cfeec8e14d7092b4cf23763363b45a) Signed-off-by: Lucas Gass --- 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