Warning messages fix:
Warning: array_keys() expects parameter 1 to be array, null given in ...\Ftp.php on line 44 Warning: Invalid argument supplied for foreach() in ...\Ftp.php on line 45 Now the last and only form of ftp-connection forms can't delete any more. This will solve this problem.
Dieser Commit ist enthalten in:
Ursprung
13307b5334
Commit
2ad817f925
1 geänderte Dateien mit 8 neuen und 6 gelöschten Zeilen
|
@ -268,11 +268,13 @@ class ConfigController extends Zend_Controller_Action
|
||||||
{
|
{
|
||||||
$index = (int)$this->_request->getPost('param');
|
$index = (int)$this->_request->getPost('param');
|
||||||
$ftpConfig = $this->view->config->get('config.ftp');
|
$ftpConfig = $this->view->config->get('config.ftp');
|
||||||
if (isset($ftpConfig[$index])) {
|
if (count($ftpConfig) > 1) {
|
||||||
unset($ftpConfig[$index]);
|
if (isset($ftpConfig[$index])) {
|
||||||
sort($ftpConfig);
|
unset($ftpConfig[$index]);
|
||||||
|
sort($ftpConfig);
|
||||||
|
}
|
||||||
|
$this->view->config->set('config.ftp', $ftpConfig);
|
||||||
}
|
}
|
||||||
$this->view->config->set('config.ftp', $ftpConfig);
|
|
||||||
$this->_forward('index');
|
$this->_forward('index');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -290,8 +292,8 @@ class ConfigController extends Zend_Controller_Action
|
||||||
$group = $subForm->getName();
|
$group = $subForm->getName();
|
||||||
$elements = array_keys($subForm->getElements());
|
$elements = array_keys($subForm->getElements());
|
||||||
foreach ($elements as $element) {
|
foreach ($elements as $element) {
|
||||||
$element = str_replace($group . '_', '', $element);
|
$element = str_replace($group . '_', '', $element);
|
||||||
$element = str_replace('_', '.', $element);
|
$element = str_replace('_', '.', $element);
|
||||||
$value = $this->view->config->get(
|
$value = $this->view->config->get(
|
||||||
'config.' .
|
'config.' .
|
||||||
$group . '.' .
|
$group . '.' .
|
||||||
|
|
Laden …
In neuem Issue referenzieren