Moved the global var '' to upside of code

This commit is contained in:
mdtrooper 2014-10-20 16:44:34 +02:00
parent 7f2098b449
commit 8390e91813
1 changed files with 3 additions and 2 deletions

View File

@ -95,6 +95,8 @@ function add_component_selection ($id_network_component_type) {
require_once ('include/functions_network_components.php');
enterprise_include_once('include/functions_policies.php');
// If code comes from policies disable export select
global $__code_from;
$disabledBecauseInPolicy = false;
$disabledTextBecauseInPolicy = '';
@ -368,8 +370,7 @@ $table_advanced->data[4][0] = __('Export target');
// Default text message for export target select and disabled option
$none_text = __('None');
$disabled_export = false;
// If code comes from policies disable export select
global $__code_from;
if ($__code_from == 'policies') {
$none_text = __('Not needed');
$disabled_export = true;