Bug quand il n'y a aucun compte ftp (thx BrixSat)

This commit is contained in:
Alan Garcia 2011-05-15 20:38:20 +00:00
parent 6cf380e400
commit 3986848445
1 changed files with 2 additions and 0 deletions

View File

@ -64,6 +64,8 @@ class m_ftp {
$c['protocol']="ftp";
$c['values']=Array();
$tt = $this->get_list();
if (empty($tt) || !is_array($tt)) return $c;
foreach ($this->get_list() as $v ) {
$c['values'][$v['id']]=$v['login'];
}