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