Add check for file fax_active.php to exist before showing link to page (#6966)

Task #8 - File not found: fax_active.php
This commit is contained in:
frytimo 2024-05-29 19:13:56 -03:00 committed by GitHub
parent ef7877f7e7
commit a4f352aa27
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -291,7 +291,7 @@
if (permission_exists('fax_log_view')) {
echo " <a href='fax_logs.php?id=".urlencode($row['fax_uuid'])."'>".$text['label-log']."</a>&nbsp;&nbsp;";
}
if (permission_exists('fax_active_view') && isset($_SESSION['fax']['send_mode']['text']) && $_SESSION['fax']['send_mode']['text'] == 'queue') {
if (file_exists(__DIR__ . '/fax_active.php') && permission_exists('fax_active_view') && isset($_SESSION['fax']['send_mode']['text']) && $_SESSION['fax']['send_mode']['text'] == 'queue') {
echo " <a href='fax_active.php?id=".urlencode($row['fax_uuid'])."'>".$text['label-active']."</a>&nbsp;&nbsp;";
}
if (permission_exists('fax_queue_view')) {