From a957b2303aeef1d78894cd2d0066840679381703 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Wed, 23 Jul 2014 20:47:00 +0000 Subject: [PATCH] Show the billing warning only if its installed --- app/dialplan/dialplan_edit.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/dialplan/dialplan_edit.php b/app/dialplan/dialplan_edit.php index c2ae673355..db9755e030 100644 --- a/app/dialplan/dialplan_edit.php +++ b/app/dialplan/dialplan_edit.php @@ -807,7 +807,10 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) { echo " "; echo ""; echo ""; - echo "

".$text['billing-warning']."

" ; + if (file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/app/billing/app_config.php")){ + echo "

".$text['billing-warning']."

"; + } + //show the footer require_once "resources/footer.php"; ?>