From 2826efd171f00123497a2dfaf4a0f938e40f7525 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Thu, 29 Sep 2016 13:12:00 -0600 Subject: [PATCH] Update dialplan.php --- app/dialplan/resources/classes/dialplan.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/dialplan/resources/classes/dialplan.php b/app/dialplan/resources/classes/dialplan.php index c1ceab1b24..161c1ad4a5 100644 --- a/app/dialplan/resources/classes/dialplan.php +++ b/app/dialplan/resources/classes/dialplan.php @@ -865,8 +865,9 @@ include "root.php"; // prevent partial dialplan (pass=nil may be error in sql or empty resultset) if ($pass == false) { - //show an error + if (count($results)) { echo 'error while build context: ' . $this->context; + } } //close the extension tag if it was left open