1
0
Fork 0

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:
Harald-Innetzberger 2011-08-08 11:04:43 +00:00
Ursprung 13307b5334
Commit 2ad817f925

Datei anzeigen

@ -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 (count($ftpConfig) > 1) {
if (isset($ftpConfig[$index])) { if (isset($ftpConfig[$index])) {
unset($ftpConfig[$index]); unset($ftpConfig[$index]);
sort($ftpConfig); sort($ftpConfig);
} }
$this->view->config->set('config.ftp', $ftpConfig); $this->view->config->set('config.ftp', $ftpConfig);
}
$this->_forward('index'); $this->_forward('index');
} }