Skip to content

Commit

Permalink
Make sure $prefs property is an array (#5523)
Browse files Browse the repository at this point in the history
  • Loading branch information
alecpl committed Nov 17, 2016
1 parent 7f04df9 commit 5dfaced
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions program/lib/Roundcube/rcube_imap_generic.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -805,7 +805,7 @@ public function getNamespace()
*
* @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);
Expand Down

0 comments on commit 5dfaced

Please sign in to comment.