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:
parent
ef7877f7e7
commit
a4f352aa27
|
|
@ -291,7 +291,7 @@
|
||||||
if (permission_exists('fax_log_view')) {
|
if (permission_exists('fax_log_view')) {
|
||||||
echo " <a href='fax_logs.php?id=".urlencode($row['fax_uuid'])."'>".$text['label-log']."</a> ";
|
echo " <a href='fax_logs.php?id=".urlencode($row['fax_uuid'])."'>".$text['label-log']."</a> ";
|
||||||
}
|
}
|
||||||
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> ";
|
echo " <a href='fax_active.php?id=".urlencode($row['fax_uuid'])."'>".$text['label-active']."</a> ";
|
||||||
}
|
}
|
||||||
if (permission_exists('fax_queue_view')) {
|
if (permission_exists('fax_queue_view')) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue