Make 'modules/monitoring/config.ini' doesn't have to exist

This commit is contained in:
Alexander Klimov 2014-08-20 18:15:38 +02:00
parent b146a8c311
commit 30d0ebcdfd
1 changed files with 2 additions and 1 deletions

View File

@ -21,13 +21,14 @@ class SecurityForm extends Form
*/
public function create()
{
$default = '*pw*,*pass*,community';
$this->addElement(
'text',
'protected_customvars',
array(
'label' => 'Protected Custom Variables',
'required' => true,
'value' => $this->config->protected_customvars,
'value' => $this->config ? $this->config->get('protected_customvars', $default) : $default,
'helptext' => 'Comma separated case insensitive list of protected custom variables.'
. ' Use * as a placeholder for zero or more wildcard characters.'
. ' Existance of those custom variables will be shown, but their values will be masked.'