From 3986848445391d93752a84346a6c94a526bc49af Mon Sep 17 00:00:00 2001 From: Alan Garcia Date: Sun, 15 May 2011 20:38:20 +0000 Subject: [PATCH] Bug quand il n'y a aucun compte ftp (thx BrixSat) --- bureau/class/m_ftp.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bureau/class/m_ftp.php b/bureau/class/m_ftp.php index 984d2bec..f0f4186f 100644 --- a/bureau/class/m_ftp.php +++ b/bureau/class/m_ftp.php @@ -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']; }