Add space in array formatting

This commit is contained in:
Emmanuel Papin 2015-05-15 08:11:51 +02:00
parent 775da60382
commit 0241f844d2
1 changed files with 49 additions and 49 deletions

View File

@ -46,7 +46,7 @@ $generalOptions=array(
'Enabled' => array(
'Type' => 'select',
'Choices' => 'Yes,No',
'Value'=>'No'
'Value' => 'No',
),
'RequireNatDet' => array(
'Type' => 'select',
@ -55,9 +55,9 @@ $generalOptions=array(
'Require' => array(
array(
'Name' => 'Enabled',
'Value'=>'Yes'
)
)
'Value' => 'Yes',
),
),
),
'IncludeNatDet' => array(
'Type' => 'select',
@ -66,13 +66,13 @@ $generalOptions=array(
'Require' => array(
array(
'Name' => 'Enabled',
'Value'=>'Yes'
'Value' => 'Yes',
),
array(
'Name' => 'RequireNatDet',
'Value'=>'Yes'
)
)
'Value' => 'Yes',
),
),
),
'ReInitNatDet' => array(
'Type' => 'select',
@ -81,13 +81,13 @@ $generalOptions=array(
'Require' => array(
array(
'Name' => 'Enabled',
'Value'=>'Yes'
'Value' => 'Yes',
),
array(
'Name' => 'RequireNatDet',
'Value'=>'Yes'
)
)
'Value' => 'Yes',
),
),
),
'AlarmScore'=>array(
'Type'=>'integer',
@ -97,10 +97,10 @@ $generalOptions=array(
'Require'=>array(
array(
'Name' => 'Enabled',
'Value'=>'Yes'
)
)
)
'Value' => 'Yes',
),
),
),
);
$pOptions=$generalOptions;
@ -117,15 +117,15 @@ if(file_exists($plugin_path."/config.php"))
$optionValue['Require'] = array (
array(
'Name' => 'Enabled',
'Value'=>'Yes'
)
'Value' => 'Yes',
),
);
}
elseif(is_array($optionValue['Require']))
{
$optionValue['Require'][] = array (
'Name' => 'Enabled',
'Value'=>'Yes'
'Value' => 'Yes',
);
}
else
@ -162,8 +162,8 @@ foreach( dbFetchAll( $sql, NULL, array( $mid, $zid, $plugin ) ) as $popt )
$pOptions[$popt['Name']]['Require'] = array (
array(
'Name' => 'Enabled',
'Value'=>'Yes'
)
'Value' => 'Yes',
),
);
} else {
dbQuery('DELETE FROM PluginsConfig WHERE Id=?', array( $popt['Id'] ) );