1
0
Fork 0
Added: if only one ftp connection is set up hide delete button no matter whether it is active or not. This way "undefined index"-notices should be prevented.
Dieser Commit ist enthalten in:
DSB 2011-08-09 19:23:29 +00:00
Ursprung 19aa858b45
Commit 2e5ac861c7
1 geänderte Dateien mit 18 neuen und 16 gelöschten Zeilen

Datei anzeigen

@ -319,22 +319,24 @@ class Application_Form_Config_Ftp extends Zend_Form_SubForm
)
);
$this->addElement(
'button',
'ftpDelete' . $index,
array(
'disableLoadDefaultDecorators' => true,
'content' =>
$this->getView()->getIcon('delete') . ' ' .
$this->_lang->getTranslator()->_('L_FTP_CONNECTION_DELETE'),
'decorators' => array('LineEnd'),
'escape' => false,
'label' => '',
'class' => 'Formbutton',
'onclick' => "deleteFtpConnection(" .
$index . ");",
)
);
if ($index > 0) {
$this->addElement(
'button',
'ftpDelete' . $index,
array(
'disableLoadDefaultDecorators' => true,
'content' =>
$this->getView()->getIcon('delete') . ' ' .
$this->_lang->getTranslator()->_('L_FTP_CONNECTION_DELETE'),
'decorators' => array('LineEnd'),
'escape' => false,
'label' => '',
'class' => 'Formbutton',
'onclick' => "deleteFtpConnection(" .
$index . ");",
)
);
}
}
/**