From 71213a6ff805c0418ae539ba054fcc8f214f2fec Mon Sep 17 00:00:00 2001 From: Nicolas Gudino Date: Tue, 26 Sep 2023 07:34:54 -0400 Subject: [PATCH] Prevent warnings and improve output avoiding unnecesary spaces when there are empty display or action --- setup/var/www/html/admin/issabel_issabelpbx_auth.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/setup/var/www/html/admin/issabel_issabelpbx_auth.php b/setup/var/www/html/admin/issabel_issabelpbx_auth.php index b4bd81f..ea837b0 100644 --- a/setup/var/www/html/admin/issabel_issabelpbx_auth.php +++ b/setup/var/www/html/admin/issabel_issabelpbx_auth.php @@ -153,7 +153,11 @@ 'username' => '', ); - $logMSG="issabelPBX ".$_POST['display']." ".$_POST['action']." "; + $action = isset($_POST['action'])?$_POST['action'].' ':''; + $display = isset($_POST['display'])?$_POST['display'].' ':''; + + $logMSG="issabelPBX ".$display.$action; + if(isset($_POST['extension'])) { $logMSG .= "extension=".$_POST['extension']." "; }