Skip to content

Commit

Permalink
Prevent warnings and improve output avoiding unnecesary spaces when t…
Browse files Browse the repository at this point in the history
…here are empty display or action
  • Loading branch information
asternic committed Sep 26, 2023
1 parent 5614f91 commit 71213a6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion setup/var/www/html/admin/issabel_issabelpbx_auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']." ";
}
Expand Down

0 comments on commit 71213a6

Please sign in to comment.