\n";
if (permission_exists('dialplan_delete') && $result_count > 0) {
- echo " ";
+ echo " ";
}
echo th_order_by('dialplan_name', $text['label-name'], $order_by, $order, $app_uuid, null, (($search != '') ? "search=".$search : null));
echo th_order_by('dialplan_number', $text['label-number'], $order_by, $order, $app_uuid, null, (($search != '') ? "search=".$search : null));
diff --git a/app/time_conditions/time_condition_edit.php b/app/time_conditions/time_condition_edit.php
index 1d68b98ec7..1d05841851 100644
--- a/app/time_conditions/time_condition_edit.php
+++ b/app/time_conditions/time_condition_edit.php
@@ -542,11 +542,6 @@ require_once "resources/paging.php";
$result_count = count($result);
unset ($prep_statement, $sql);
- $debug_output .= "Select Query... ";
- $debug_output .= '$result ='."\n\n";
- $debug_output .= print_r($result, true);
- $debug_output .= " ";
-
//load current conditions into array (combined by group), and retrieve action and anti-action
$c = 0;
@@ -558,20 +553,8 @@ require_once "resources/paging.php";
}
}
- $debug_output .= "Rebuild array... ";
- $debug_output .= '$current_conditions ='."\n\n";
- $debug_output .= print_r($current_conditions, true);
- $debug_output .= " ";
-
- $debug_output .= "Load available presets... ";
- $debug_output .= '$available_presets ='."\n\n";
- $debug_output .= print_r($available_presets, true);
- $debug_output .= " ";
-
//loop through available presets
- $debug_output .= 'Loop through $avaialble_presets array, compare variable count and values with $current_conditions array... ';
-
foreach ($available_presets as $preset_number => $preset) {
foreach ($preset as $preset_name => $preset_variables) {
//loop through each condition group
@@ -588,8 +571,6 @@ require_once "resources/paging.php";
$current_presets[] = $preset_number;
//drop group from array of current conditions
unset($current_conditions[$group_number]);
-
- $debug_output .= "Found! Group ".$group_number." is ".$preset_name."... noted, group unset. ";
}
}
}
@@ -598,11 +579,6 @@ require_once "resources/paging.php";
//load remaining conditions as custom conditions
- $debug_output .= " Current conditions... ";
- $debug_output .= '$current_conditions ='."\n\n";
- $debug_output .= print_r($current_conditions, true);
- $debug_output .= " ";
-
$c = 0;
foreach ($current_conditions as $conditions) {
foreach ($conditions as $condition_variable => $condition_value) {
@@ -613,14 +589,8 @@ require_once "resources/paging.php";
}
unset($current_conditions);
- $debug_output .= 'Restructure array into remaining conditions... ';
- $debug_output .= '$custom_conditions ='."\n\n";
- $debug_output .= print_r($custom_conditions, true);
- $debug_output .= " ";
- if (isset($_REQUEST['debug'])) { echo $debug_output; }
}
-
?>