Make sure $prefs property is an array (#5523)

pull/5530/head
Aleksander Machniak 9 years ago
parent e306328340
commit 8a76bf3783

@ -50,10 +50,10 @@ class rcube_imap_generic
protected $fp;
protected $host;
protected $prefs;
protected $cmd_tag;
protected $cmd_num = 0;
protected $resourceid;
protected $prefs = array();
protected $logged = false;
protected $capability = array();
protected $capability_readed = false;
@ -810,7 +810,7 @@ class rcube_imap_generic
*
* @return bool True on success, False on failure
*/
public function connect($host, $user, $password, $options = null)
public function connect($host, $user, $password, $options = array())
{
// configure
$this->set_prefs($options);

Loading…
Cancel
Save